Arduino syntax coloring support

132 views
Skip to first unread message

Olle Jonsson

unread,
Mar 1, 2009, 12:50:10 PM3/1/09
to Bespin
Oh, here is an Arduino syntax coloring file, diffed today. Thanks for
making such clean code. It was quite simple to navigate the project,
and guess away.

http://gist.github.com/72410


Dion Almaer

unread,
Mar 2, 2009, 1:14:03 AM3/2/09
to bes...@googlegroups.com
Hi Olle,

I checked in the syntax highlighter. Thanks a lot!

I haven't added it as a default syntax tracker yet though. Rather than having to have people load a ton of syntax files for less common formats, I think it is better to ask users to add a one-liner to their config.js that will load in that file. I am fixing that up now.

Make sense?

Cheers,

Dion

Olle Jonsson

unread,
Mar 2, 2009, 1:28:26 AM3/2/09
to bes...@googlegroups.com
> Rather than having to have people load a ton of syntax files for less common formats, I
> think it is better to ask users to add a one-liner to their config.js that
> will load in that file. I am fixing that up now.
Oh, user-friendly! I'll take a peek at the handling of config.js when
it's done. Dojo apps are a treat to get to know. So polite and
helpful.

http://arduino.cc/blog/?p=209 was the context for the syntax file. I'm
trying to customize a Bespin server, making it compile and check the
program someone wrote. I have no idea if that's at all feasible/in
scope.

OK, I'll be lurking now. Ciao.

Olle

Dion Almaer

unread,
Mar 2, 2009, 1:37:00 AM3/2/09
to bes...@googlegroups.com
Olle,

Very cool indeed! Having Bespin do the compile etc is very interesting indeed. Please let us know how we can help!

I just checked in the change so to turn on arduino support you just put:

include("bespin.syntax.arduino");

in your config.js file (which you can launch via the editconfig command).

Thanks again for taking the time to help with Bespin!

Cheers,

Dion
Message has been deleted

Olle Jonsson

unread,
Mar 2, 2009, 5:55:14 AM3/2/09
to bes...@googlegroups.com
> This sounds really interesting. It doesn't seem to work for me though.
> When i want to run my previously edited configfile using the runconfig
> command, i get the following error message:
>
>>there is an error in your config.js:
>>ReferenceError: include is not defined
>
> Is that a bug, or a feature, or just my fault?

Dear Danilo, are you using "tip"? (As in, the very latest version from
the Mercurial repository.)

You find it at: http://hg.mozilla.org/labs/bespin/

hg clone http://hg.mozilla.org/labs/bespin/

...and Dion said this'd be in the released version 0.2 (it might not
be done just yet).

Message has been deleted

Dion Almaer

unread,
Mar 2, 2009, 9:14:23 PM3/2/09
to bes...@googlegroups.com
Also, I had to make a change so you need:

require(...) instead of include(...)

Should work good on tip of tree!

On Mon, Mar 2, 2009 at 3:36 AM, Danilo Bargen <gez...@gmail.com> wrote:

Ah, no, sorry for that... I'll mess with the repository later today,
don't have the time to do this at work :)

Thanks
Danilo


> Dear Danilo, are you using "tip"? (As in, the very latest version from
> the Mercurial repository.)
>
> You find it at:http://hg.mozilla.org/labs/bespin/
>
Reply all
Reply to author
Forward
0 new messages