Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add multi-line, nested list '[' ']' indentation and tree folding to QScintilla Editor #1075

Open
clothbot opened this issue Dec 16, 2014 · 2 comments
Labels
Comp: GUI Dep: QScintilla Source Code Editor Component

Comments

@clothbot
Copy link
Contributor

clothbot commented Dec 16, 2014

Simple example:

test_match_any_list=[
[[1,0],[1,1]]
,[[0,1],[1,1]]
,[[1,1],[0,1]]
,[[1,1],[1,0]]
];

Would be handy if lists-of-lists were auto-indented and could be tree-folded in QScintilla Editor mode.

Thanks!

Andrew.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@t-paul
Copy link
Member

t-paul commented Dec 16, 2014

We currently have not much control over that as we just mis-use the C++ lexer provided by QScintilla. To handle OpenSCAD specifics, a completely new lexer would be needed which is probably not an easy task...

@clothbot
Copy link
Contributor Author

Got it.

For reference, I see '[',']' and '(',')' character pairs mentioned in http://pyqt.sourceforge.net/Docs/QScintilla2/classQsciScintilla.html#ae8277ccb3a2af0ae9a1495d8f8ea0523

..and in http://www.scintilla.org/ScintillaDoc.html#BraceHighlighting

...but understood that the devil's in the details. :-)

Andrew.

@kintel kintel added Comp: GUI Dep: QScintilla Source Code Editor Component labels Jan 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Comp: GUI Dep: QScintilla Source Code Editor Component
Projects
None yet
Development

No branches or pull requests

3 participants