[Tip] SubEthaEdit for Servoy
by David Workman
Data Mosaic
[image unavailable: Picture_2_2] There is a text editor out there for just about everything these days and if you want to start a lively debate just ask a group of developers what their favorite text editor is. SubEthaEdit holds it's own in this crowded field and is especially well known for its collaborative abilities.
Have you ever wanted to show a servoy method on an html page with correct syntax coloring? I covered this topic in an earlier tip that accomplishes this task with a Servoy application that parses the text of a method and adds appropriate html tags as it goes along.
As it turns out I could have saved myself a whole lot of effort by utilizing SubEthaEdit's great support for syntax coloring and its powerful html export feature. The default installation comes with syntax coloring modes for all the usual flavors of coding. Each mode is dictated by a file contained in the SubEthaEdit application bundle and creating your own modes is relatively easy. For Servoy syntax coloring it was a simple matter of duplicating the included JavaScript mode file, adding in all the Servoy keywords, adjusting the color parameters and including the file in the application.
This allows me to use SubEthaEdit to easily view, edit, store, and export to html Servoy methods in their native syntax coloring. Especially useful for creating web based Servoy training programs. You can even go poke around under the hood of SubEthaEdit and change the html template file that is used in the export to suit your own needs.
Download the Servoy syntax coloring mode for SubEthaEdit here. To install the mode double-click the file and it will install automatically. Please send me any updates to the mode file if you find I missed any keywords and I'll make sure it stays up-to-date on the main website.
Comments (7)