Attract-Mode Support Forum
Attract-Mode Support => General => Topic started by: tomek on August 16, 2015, 05:26:49 PM
-
What do you think about changing the syntax of the config file to use something like Squirrel Tables? I think it would make for a much nicer experience when editing the config files. At the moment since the syntax is really loose my editor of choice (Sublime) can be used in limited capacity and doesn't offer any of nice features that are usually on offer through syntax highlighting modes.
-t
-
nope...needs to be easy just like it is...or..make it a choice. It has to be simple..or we lose people.
-
@Tomek
check out my thread about syntax highlighting: http://forum.attractmode.org/index.php?topic=213.msg1281#msg1281
Maybe you could write a squirrel syntax highlighting definition for sublime (or just tweak existing one)?
For me definition for Groovy is quite ok to start with.
-
OK you are talking about the nut files for layouts and such not the AM cfg file. Yeah they need to be highlighted..all code should be..makes it easier to read.
-
ahhh... right :)
-
Actually I was talking about AM config files. But I can appreciate what you're saying about simplicity. People who do not have a lot of coding experience should be able to configure the system and once you start introducing braces and semicolons they'll make a lot of mistakes.
As for syntax highlighting I was initially using JavaScript as it was close enough for me but now I am using a Sublime package (https://github.com/micheg/sublime_squirrel).
This just in, I've just found this (http://gothic-online.com.pl/showthread.php?tid=381) which might be even better. Will need to try it out at home tonight.
cheers,
-tomek
OK you are talking about the nut files for layouts and such not the AM cfg file. Yeah they need to be highlighted..all code should be..makes it easier to read.
-
Great! It looks like now I have a real reason to switch to sublime.