Page 1 of 1

Syntax highlighting

Posted: 22 May 2013 17:52
by oblivion
Just a (probably foolish) question: does anyone here (a) use the Boxer text editor, (b) have taught it to recognise xys syntax and (c) would be prepared to post the relevant line from their syntax.ini so I can make use of all your hard work? ;)

Failing that, does anyone have xys syntax highlighting rules for any other PFEs that I might be able to hack into an importable format?


Just as a sort of side-issue: I'm trying to get to grips with xys scripting by throwing myself into the deep end: I've found a (complex!) script that doesn't do exactly what I need but I'm hoping I can make it work for me. Always assuming I achieve anything at all with it (I'm not yet at the stage when all my "too complicated" lights start flashing, but it could happen anytime!) is there a protocol for crediting original authors if I post my hack? Or should I just not post anything that's not entirely original code?

Re: Syntax highlighting

Posted: 22 May 2013 18:05
by serendipity
oblivion wrote:Just a (probably foolish) question: does anyone here (a) use the Boxer text editor, (b) have taught it to recognise xys syntax and (c) would be prepared to post the relevant line from their syntax.ini so I can make use of all your hard work? ;)

Failing that, does anyone have xys syntax highlighting rules for any other PFEs that I might be able to hack into an importable format?


Just as a sort of side-issue: I'm trying to get to grips with xys scripting by throwing myself into the deep end: I've found a (complex!) script that doesn't do exactly what I need but I'm hoping I can make it work for me. Always assuming I achieve anything at all with it (I'm not yet at the stage when all my "too complicated" lights start flashing, but it could happen anytime!) is there a protocol for crediting original authors if I post my hack? Or should I just not post anything that's not entirely original code?
One I use is right at the bottom of the list below from editpad, was created by jacky a while ago but works decently well for me:
http://www.editpadpro.com/cgi-bin/cscslist3.pl

Re: Syntax highlighting

Posted: 22 May 2013 19:15
by binocular222
It was from 2005, quite outdated. It would be greate if there's auto-completion such as one in Sublime Text (when you type the 1st 3 characters, list of relevant function/variables are listed out)

Re: Syntax highlighting

Posted: 23 May 2013 17:39
by RalphM
binocular222 wrote:It was from 2005, quite outdated. It would be greate if there's auto-completion such as one in Sublime Text (when you type the 1st 3 characters, list of relevant function/variables are listed out)
PSPad offers a list of relevant functions and the language files are almost up to date...

Edit: Now the language files are up to date again, see http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=9726

Re: Syntax highlighting

Posted: 29 May 2013 11:40
by oblivion
RalphM wrote:
binocular222 wrote: Edit: Now the language files are up to date again, see http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=9726
Thanks -- and thanks to everyone else here who's posted helpful responses to my original question -- I'm really impressed with the helpfulness and general good humour of everyone in the XY Forum :)