Hi,

Adding scintilla just for syntax highlighting is overkill, I agree. But that is 
not why I originally started looking into it. Currently maintaining the text 
editor functionality can be a pain, especially when it comes to undoing/redoing 
operations. If blender did use scintilla, then developers only have to worry 
about the thin layer between Blender and Scintilla, and not the internals. It 
would also leverage the usefulness of scintilla inside of Blender by having 
more features if desired. It also has support for advanced features such as 
autocompletion and calltips.
It is still an early WIP but I think it has alot of potential (plus its been a 
fun side project for me :-)). Ultimately a decision can be made as to actually 
use it or not.

Thanks,
Justin




----- Original Message -----
> From: Ton Roosendaal <[email protected]>
> To: Justin Dailey <[email protected]>; bf-blender developers 
> <[email protected]>
> Cc: 
> Sent: Wednesday, December 19, 2012 10:54 AM
> Subject: Re: [Bf-committers] Text Editor - Scintilla Integration
> 
> Hi,
> 
> I would suggest to check on basic syntax hightlighting to please OSL editing. 
> Adding Scintalla sounds like overkill.
> 
> -Ton-
> 
> ------------------------------------------------------------------------
> Ton Roosendaal  Blender Foundation  [email protected]    www.blender.org
> Blender Institute   Entrepotdok 57A  1018AD Amsterdam   The Netherlands
> 
> On 19 Dec, 2012, at 16:13, Justin Dailey wrote:
> 
>>  Hello everyone,
>>  Since it was recently brought up about further extending the text editor 
> syntax highlighting for more languages, I figured I would mention that I have 
> currently been working on implementing Scintilla [1] as the main editing 
> engine 
> for the text editor. (For those of you unfamiliar with Scintilla, it is the 
> editing engine for such editors as SciTE, Notepad++, Code::Blocks, etc). 
> I've already written most of the wrapper code for scintilla and mapped about 
> 90% of the text editor operators. It doesn't do any loading/saving, handing 
> multiple files, etc yet but that will come in the future. 
>> 
>> 
>>  It also does syntax highlighting. Scintilla comes with about 90 lexers 
> (lexers are what do the parsing and coloring), granted we only need to keep a 
> few of them. Any language which it doesn't support currently (OSL, GLSL) can 
> have a lexer written for it if needed.  Full integration of scintilla is 
> still a 
> ways off but I figured I would give a glimpse of good things to come :-)
>> 
>>  And just to be clear, I'm not trying to say that implementing syntax 
> highlighting for OSL or other languages is not needed right now, I'm just 
> trying to make sure we don't run off and try to restructure the text editor 
> too much to implement major features if scintilla will work. :-)
>> 
>> 
>> 
>>  [1] http://www.scintilla.org/
>> 
>> 
>> 
>>  Thanks, 
>> 
>>  Justin (dail)
>> 
>>  _______________________________________________
>>  Bf-committers mailing list
>>  [email protected]
>>  http://lists.blender.org/mailman/listinfo/bf-committers
> 
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to