On Feb 13, 2006, at 6:42 PM, Aparajita Fishman wrote:

One of the interesting statistics on RoR is that the the majority of the developers are using Mac OS X! When someone posted a question asking why this was the case - the majority of the responses were "TextMate..." <http://macromates.com/>. TextMate is a Mac only text editor that is still maturing, but....

I looked at TextMate's syntax highlighting functionality, and although it is very good, it isn't as sophisticated as jEdit's, which allows dynamic switching of syntax modes.

However, this does not mean I could not be persuaded to do syntax highlighting for TextMate as well.

Let's see if anyone else bites and maybe we can persuade you. Alexander Heintz seemed to like it:-)

I'm not sure what you mean by dynamic switching. What I did in my bundles was define two A4D environment (this was how Rails and Ruby were defined). HTML (A4D) has the root environment as HTML outside the <% %>. Inside the <% %> it has A4D as the syntax environment. A4D is based on .a4d or .a4l extension. HTML A4D is based on only .a4d. You could create another bundle for just .a4l with just the library and end library keywords and have A4D as a child inside of library. The only thing I noticed is that, if you are in HTML (A4D), the text folding marks only show for html. You have to switch manually (not dynamic) to the A4D bundle to see the folding marks. Since I almost never use folding mark (i.e, collapse an If statement), didn't see that as a big deal. All the text formating, snippets are controlled by what area you are in.

The only thing I did was copy what I saw in other bundles that related to A4D and put them in the bundle. I've got all the keywords together, but could separate out A4D commands from 4D commands. Had a little regex learning experience, stealing from SQL so that keywords ignored case etc. What I said in my original post is that I know there are things wrong since I copied and pasted a lot of the definitions. I don't speak regex very well so If I didn't understand something, I just left it there.

Steve Alex


_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to