Sergey Gromov wrote:
Wed, 12 Aug 2009 18:12:41 +0100, Stewart Gordon wrote:
<snip>
Scintilla uses plugins to highlight source. These plugins are written
in C++ and have almost full access to the buffer so the highlighter code
may be arbitrarily complex. I actually wrote such a plugin to highlight
D a while back:
http://dsource.org/projects/scrapple/browser/trunk/scilexer
"1. If you have SciTE 1.76 for Windows installed simply replace
SciLexer.dll and d.properties with the supplied files.
2. If you wish to build Scintilla from source:"
Can it be used in Scintilla-based editors besides SciTE short of
acquiring the whole Scintilla source and rebuilding it?
For the record, there's a SciLexer.dll in my Notepad++ dir, but no
d.properties to be found. The SciLexer.dll reports itself as file
version 1.7.8.0, product version 1.78. So maybe the question is of what
effect replacing it with a fork of version 1.76 would have. (Do SciTE
versions correspond directly to Scintilla versions?)
It seems like Notepad++ developers added their own highlighter plugin
which takes userDefineLang.xml as its configuration. Such a
configurable plugin is presumably much less flexible than pure C++
implementation for a particular language. It's very likely that PHP
highlighter is written in C++ and comes bundled with Scintilla.
It puzzles me that they didn't make this plugin powerful enough to
highlight the language it (and indeed the whole of Notepad++) is written
in. Even more so considering the sheer number of C-like languages out
there, which people are likely to want to use N++ to write.
Stewart.