PDA

View Full Version : QScintilla ColumnMode?



RolandHughes
27th March 2021, 17:14
Does anyone know if there is a version of QScintilla out there supporting ColumnMode? I can't seem to find any roadmap or anything.

d_stranz
28th March 2021, 16:32
By "ColumnMode" I assume you mean support for multiple column formatting within a page?

Looking at the Scintilla website (https://www.scintilla.org/), it doesn't appear to be supported in Scintilla itself, so I doubt it would be supported in a Qt wrapper. Since Scintilla is designed as a source code editor, not general-purpose document editing software, it is not surprising that multiple column support is not there. What would be the point of multiple columns in source code? The Scintilla site has a bug and feature list, and there is nothing on there.

RolandHughes
28th March 2021, 17:04
By "ColumnMode" I assume you mean support for multiple column formatting within a page?

Looking at the Scintilla website (https://www.scintilla.org/), it doesn't appear to be supported in Scintilla itself, so I doubt it would be supported in a Qt wrapper. Since Scintilla is designed as a source code editor, not general-purpose document editing software, it is not surprising that multiple column support is not there. What would be the point of multiple columns in source code? The Scintilla site has a bug and feature list, and there is nothing on there.

Column mode comes in handy, especially if you have to fix test data, or need to line up a bunch of poorly aligned code.

13611

d_stranz
29th March 2021, 02:30
I see. Can you use the tab setting features (https://www.scintilla.org/ScintillaDoc.html#TabsAndIndentationGuides) for that?

RolandHughes
29th March 2021, 11:45
I see. Can you use the tab setting features (https://www.scintilla.org/ScintillaDoc.html#TabsAndIndentationGuides) for that?

Thanks for the response.

Not really, no. Column mode is a bit more than that.

13612
13613
13614

That does remind me that I need to look into a Tab List with that as well. For some languages you don't want a Tab every N characters, you need specific tab locations.

Thanks for responding though.

Added after 28 minutes:

There __must__ be a way to jury rig it. I believe Notepadqq uses Scintilla and I just found out how to do it in there.

13615

It's rather convoluted. Hold down <ALT><CTRL><Shift> then drag mouse. Once you have it marked you can then move the entire block. Not quite as fancy as UltraEdit or the other editors with column mode where you can search and replace within column, etc.

13616

d_stranz
29th March 2021, 16:41
It's rather convoluted. Hold down <ALT><CTRL><Shift> then drag mouse.

Visual Studio's code editor has a similar behavior. When I have accidentally done it, it has messed up more source code files than I care to count. I use the VS add-in Visual Assist, which allows me all of the customization I need.

Anyway, good luck with finding a solution.