[Gambas-user] About syntax highlighting and copy/paste to OpenOffice

Benoît Minisini gambas at ...1...
Fri Apr 1 11:28:33 CEST 2011


> On 04/01/2011 02:30 AM, Rolf-Werner Eilert wrote:
> > Hm, this is just what I meant: When we had a tool which was resident
> > within the IDE, it could easily have access to the editor's highlighting
> > and many other things, thus enabling for easier highlighting than an
> > external tool. Why re-invent the wheel?
> > 
> > I guess it's pretty easy to simply use the Gambas editor's highlighting
> > capabilities by reading the code from it and evaluating the highlighting
> > properties of the text. The editor is there in Gambas and can be easily
> > read, so let me just make some trials...
> > 
> > Good idea though not to print directly but offer the option to paste the
> > text into OO for further rendering. If I was an author of a book about
> > Gambas, I'd love this... :-)
> 
> Rolf, agreed. A File menu option could simply "print" to a single file,
> encoding the current theme and code markers. While this is plainly an
> extravagant feature that would just be for fun, it would be cool for
> code examples in web sites. It should perhaps be placed on low priority,
> like when all other bugs are fixed.
> 
> Use the existing "theme", save to known format like html.

Gambas syntax highlighting is located in the gb.eval component. You don't need 
the editor. And other syntax highlighting are located in the gb.eval.highlight 
component, written in Gambas, and easily expandable with new syntaxes.

Regards,

-- 
Benoît Minisini




More information about the User mailing list