> 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 ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user