Is it possible to do split view in pdb - pdb

I'm wondering if pdb has anything equivalent to gdb's split view (when you press ctrl-x 1), where the code is displayed at the top half of the terminal window, and is automatically refreshed when you step through?
I've not found anything on google, but I might not be searching for the correct terms.

Related

Stop IntelliJ from opening same file twice in horizontal split view

googled this but didn't have success.
I'm using the horizontal split view of IntelliJ (the view that allow us to have files on the upper and bottom part of the screen).
The problem is that whenever I search for a file using the search for a target feature, instead of opening the already opened file which is located on the upper files' list, it opens again on the bottom list but I'd like it to open the one that's already open on the upper list.
Do you know how to change this behavior?

Is there a way to isolate the view of code-regions in IntelliJ?

I have some static HTML and want to generate templates out of it. Looking through the HTML tags I often find myself adding the tags I don't want to have in my templates because I went too far down in the hierarchy. Is there a way to kind of isolate the view of a marked code area? Like greying all unmarked code out somehow?
I'm still not 100% sure what you mean by "mark". I'm assuming you mean "select", that is highlight with the cursor, like this:
If that is the case... here is some info.
There is no way to "highlight" the selected portion and work with it, nor a way "dither out" the non selected portion as you go on to work with the desired portion. You could, however, make use of scratch files to work on the desired text. (Scratch files at IntelliJ IDEA help documentation)
With the portion you want to modify selected, if you create a new scratch file (Ctrl+Alt+Shift+Insert / ⇧⇧N or Tools > New Scratch File), the selected portion will be copied into a scratch file:
You could then work in that scratch file, then copy and paste the final result back into the original file (the changes you make in the scratch file are not "linked" to the original file).
Because you have a portion selected when you launch the scratch file, IDEA creates a scratch file of the same type (HTML in this case) as the selected content. (If done without selected text, a popup is shown asking the type of scratch file you want to create.) If you want JSP syntax awareness, in the HTML scratch file, open the context menu (i.e. right click) and select "Change Language" and select JSP from the menu (inline search is available, so you can just start typing JSP).

Scroll multiple splits simultaneously in IntelliJ IDEA

In IntelliJ IDEA I often split the tabs vertically in order to be able to see multiple files at the same time. This can be useful when the two (or more) files have the same (or similar) structure and I want to compare them (e.g. language files).
My problem is that I'd like to scroll the two splits simultaneously, but can't figure out how (if possible). Is there any setting/plugin for this?
To compare two files in IntelliJ IDEA 14, just select them in the Project view (keep Ctrl pressed for multi-selection) and choose Compare Two File from the context menu. This will open the Differences Viewer. You can also compare a file with the clipboard or the editor contents.
The Difference Viewer scrolls both files simultaneously (there is a button to disable sync'd scrolling) and allows editing both. Differences are highlighted by word, by line, or not at all.
Joined / Wraparound / Continuous Tab Scrolling plugin seems to be what you are looking for.

vb.net how to do a dos style tree

Hi all im trying to create a basic screen saver that has a screen split into two, the left hand side will be similar to the dos command tree where it lists all files and folders, the right hand side will be where the files contents are displayed. So when the application starts up the tree on the left is populated and then the application starts to go through all the files one by one opening them and scrolling through them if possible.
So here is where im stuck i cant seem to figure out how to print a directory tree to the screen.
It seems like a trivial question i know but i cant for the life of me find a solution as elegant as the dos command.
As always any help would be appreciated.
You can use the TreeView control to display the folders and files. Just populate it with the folder contents, recursively if necessary.

Extract screenshot or picture of portion of PDF using VBA or VB and Adobe SDK

I am currently using an excel macro (although I will switch to VB.NET if necessary) to loop through all of the text in a PDF and populate an array with certain portions of the text in the PDF (via the Adobe SDK and getPageNthWord). This part is working just fine, but now what I want goes a step further.
There are certain portions of the PDF where just grabbing the text isn't giving the full picture, and I'd like to see what more I can get. This is exactly the screenshot or snippet I am trying to get:
So, I know that I could use getPageNthWordQuads to find the coordinates for the words "Compliance Warning" and I could figure out a way to find the bottom right of the screen as well, but my problem starts there. After I get those coordinates what would I do with them? Can I zoom in the PDF to only see that portion and then take a screenshot? I already have the code for a screenshot of the activewindow, but I don't know how to scroll or zoom on a PDF.
Any help would be greatly appreciated. A fresh approach would be welcome as well. Thanks!
There are probably a number of approaches that would work - I don't know enough about your environment / constraints to know for sure which would work best. I'm assuming you are talking to Acrobat through OLE here.
1) You can open a window, get its AVPageView and ask it to zoom and move to where you want it to do your thing.
2) You can open a PDF document in one of your own windows using OpenInWindowEx and then grab the contents of that window (the advantage being that this window could be off screen).
3) You can use the DrawEx method (in AcroExch.PDPage) to render a specific portion of a page into your own window and then process that.