Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Custom Lexers for C::B? (Was: XML file types?)
rickg22:
Okay! :) I'll do it when I get time. Maybe tonight, maybe on monday.
rickg22:
w00t! :shock: It works! :D
I added in the configuration (a quick hack, won't commit to CVS) in cbeditor.cpp (function SetEditorStyle() ) :
m_pControl->SetProperty("fold.html", ConfigManager::Get()->Read("/editor/folding/show_folds", 1) ? "1" : "0");
Note: This is a hack, i won't commit to CVS. A new config variable (and its corresponding dialogue) must be added to C::B. I suggest using "/editor/folding/fold_xml".
But it WORKS! :D Now I can fold the sizeritem's in XRC files!
Now, the problem is...
We need to implement a full set of styles etc. But IMO this feature *MUST* be implemented in 1.0. In fact, I'm adding it to RFE's with priority 9 8)
If anyone wants to cooperate with the lexer xml files, he's welcome to contribute! 8)
squizzz:
--- Quote from: rick22 ---Any more info on this feature in particular, if it exists? (Like, opening and closing the contents of an xml element/tag or comment)
--- End quote ---
If SciTE derives all features of Scintilla in a straight way, then support for following languages' syntax could be possible :) (* = support for folding)
--- Quote from: http://scintilla.sourceforge.net/SciTEDoc.html ---
- Ada
- ANS.1 MIB definition files*
- APDL
- Assembler (NASM, MASM)
- AutoIt*
- Avenue*
- Batch files (MS-DOS)
- Baan*
- Bash*
- BlitzBasic*
- Bullant*
- C/C++/C#*
- Clarion*
- conf (Apache)*
- CSound*
- CSS*
- diff files*
- E-Script*
- Eiffel*
- Erlang*
- Flagship (Clipper / XBase)*
- Flash (ActionScript)*
- Fortran*
- Forth*
- Haskell
- HTML*
- HTML with embedded JavaScript, VBScript, PHP and ASP*
- Gui4Cli*
- IDL - both MSIDL and XPIDL*
- INI, properties* and similar
- Java*
- JavaScript*
- LISP*
- LOT*
- Lout*
- Lua*
- Make
- Matlab*
- Metapost
- MMIXAL
- MSSQL
- nnCron
- NSIS*
- Objective Caml*
- Octave*
- Pascal/Delphi*
- Perl, most of it except for some ambiguous cases*
- PostScript*
- POV-Ray*
- PowerBasic*
- PureBasic*
- Python*
- Rebol*
- Ruby*
- Scheme*
- scriptol*
- Specman E*
- Smalltalk
- SQL and PLSQL
- TADS3*
- TeX and LaTeX
- Tcl/Tk - using the cpp lexer*
- VB and VBScript*
- Verilog*
- VHDL*
- XML*
- YAML*
--- End quote ---
rickg22:
Done! :D
Now you guys can edit XRC files inside codeblocks, with the ease of any xml editor! :D
darklordsatan:
To the risk of sounding stupid, whats folding?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version