#2220 Fantom lexer for Textadept

ttmrichter Thu 26 Dec 2013

I've made a Fantom lexer for the Textadept editor so that Textadept users can get their syntax-highlighting and code-folding freak on while using Fantom. The following two files need to placed in ~/.textadept/lexers/:

lexer_tools.lua

fantom.lua

In addition, in ~/.textadept/init.lua the following lines of code need to be added to have Fantom source files recognized:

textadept.file_types.extensions.fan         = 'fantom'
textadept.file_types.shebangs.fan           = 'fantom'
textadept.file_types.patterns['/ft=fantom'] = 'fantom'

KevinKelley Fri 27 Dec 2013

Heck yeah. Mostly I'm loving Sublime, except that it's python-based and slow to load. This thing's instant.

Now we need to get Fantom to emit to LuaJit. The whole "Java on the Desktop" world sucks; and the "Everything in the Browser" idea sucks too. I mean come on, it took 20 years for the major OS's to finally shape up to something solid; so now we're going to not use that? Sheesh. And "Internet-enabled" is nice, but there's way too much shipping-keystrokes-across-the-country going on.

I'm liking polyglot Vert.x on JVM for the server world; and wishing for something that might look like Fantom over LusJit for fast-and-light on the desktop.

Anyway. Rambles aside, nice work.

SlimerDude Fri 27 Dec 2013

Cool, I'll take a look at Textadept... especially as it has themes too!

On the topic of Sublime, what Fantom syntax highlighting do people use for it? I've man-handled the TextMate .tmLanguage file, but I'm not sure if there's a better way.

(I also have a Sublime syntax file for Slim which I should probably share at some point!).

Despite this talk of text editors, I still find debugging with F4 can sometimes be a life saver!

KevinKelley Fri 27 Dec 2013

I use Martin Lau's from a while back, seems good.

Login or Signup to reply.