Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Custom Lexers for C::B? (Was: XML file types?)
per_eckerdal:
When coding C++ in Code::Blocks, there is a column with pluses to the left of the code. When clicking them you can "fold" the code. :)
/Per Eckerdal
RShadow:
--- Quote from: rickg22 ---Recently i've been glimpsing over the scintilla code, and i've seen that there's html support in scintilla. And I think code folding, too!
So, what needs to be done to add XML / HTML support to the codeblocks editor?
Actually, what needs to be done to add other (custom) filetypes to the editor?
--- End quote ---
Speaking of scintilla.. how is this being integrated into C::B? A quick look shows an old control (the name of which I can't recall). I would recommend (if this is not already the case) to move to wxScintilla.
rickg22:
RShadow: Actually we don't know if wxScintilla REQUIRES wxSTC to be compiled first. If you can provide us directions to replace wxSTC with wxScintilla, we'd appreciate it.
RShadow:
--- Quote from: rickg22 ---RShadow: Actually we don't know if wxScintilla REQUIRES wxSTC to be compiled first. If you can provide us directions to replace wxSTC with wxScintilla, we'd appreciate it.
--- End quote ---
Hmm.. I don't believe so.. I downloaded and compiled wxScintilla without wxSTC.. but let me check..
Nope.. it does not link against wxSTC anywere.. I think this should be a "feature" added to the HEAD cvs branch.
thomas:
...and here is a lexer for nVidia's cg language.
It is derived from the C/C++ lexer and does not only colour the 87 known keywords, but also the 538 different datatypes, register names, and semantics.
Additionally, all cg 1.2 standard library functions are coloured, too (unless I forgot some?).
This might be interesting in particular because of http://forums.codeblocks.org/index.php/topic,735.0.html.
Revove the .txt extension -- the forum would not otherwise let me post it :)
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version