|
Eclipse Syntax Highlighter For Proxo/Sidki - Intro
|
|
Nov. 15, 2009, 02:30 PM
(This post was last modified: Nov. 15, 2009 08:43 PM by ProxoDent.)
Post: #9
|
|||
|
|||
RE: Eclipse Syntax Highlighter For Proxo/Sidki - Intro
(Nov. 14, 2009 06:17 AM)PAEz Wrote: Dont worry to much about the jedit one if Im going to be able to use a lighter option than eclipse with the plugin, Im impatient but Id rather you spend your time on the plugin. I took your suggestion yesterday and skipped working on the jEdit highlighter. However, during the course of the day, I used jEdit for some work just to see how it stacked up against my preconceived dislike for JAVA apps, and I have to admit I liked it enough to finish the jEdit-based highlighting code rather than just clean it up. Among other things, I added / modified code so the paired symbols matching now respects escapes and allows for Perl character class rules within square-brackets just as I had done for the Colorer-Take5 version. I think if you give this a try with jEdit, you'll like it. I originally gave up on it because the Eclipse plug-in (I don't know who wrote it) that uses the jEdit format was pretty wonky: it didn't respect the rules I was writing which were based on jEdit's documentation (possibly because the plug-in may be based on an older version of jEdit's format), it didn't utilize the paired-matching capability, and the editor supplied was very basic and did some unexpected things that I couldn't tolerate (among the examples, undo'ing edits would never turn off the 'unsaved' status indicator despite the fact that the file had been returned to its original state). However, none of the issues are present when using the syntax code with jEdit itself. Don't worry, I'll continue with the Colorer-Take5 code documentation, because it is likely the one I'll use the most. But I also use Eclipse for bigger projects (mostly Perl and Python). I don't think I'd wish it on anybody to set up Eclipse for the sole purpose of editing Proxomitron files. But that's your call. Editing files in MC or FAR doesn't appeal to me either; if I was going to use a console editor, I'd use Vim or emacs. That said, it's always nice to have options. Okay, let's get to it: 1. Install jEdit; 2. Copy the attached 'ptron.xml' file (after unzipping it) to the 'modes' sub-directory under the jEdit root; 3. Open the existing 'catalog' file (also in the 'modes' sub-directory) and add this code to the file: Code: <MODE NAME="ptron" FILE="ptron.xml"Make sure the code is placed between the <MODES> </MODES> tags (it's easiest just to stick it at the end of the file right before the closing </MODES> tag. Here's the mapping of the colors, and the corresponding RGB codes to set in jEdit if you want to make the syntax look exactly like it appears in the screen shots (the mapping documentation is in the xml file as well): Code: Color MappingAlso, jEdit has settings for adjusting the font appearance that were mandatory for me, otherwise jEdit was unusable. Adjust these settings if you have issues:
Final caveat: I am definitely not a syntax-writing guru, and I learned the coding format strictly for this project. I also lose interest in side-projects pretty quickly, so any issues found may need to be addressed by the end-user.
|
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help




![[-]](images/ONi/collapse.gif)