Page 1 of 2
XYS syntax highlight for Sublime Text
Posted: 10 Jun 2013 04:36
by binocular222

- Untitled20130610141930.png (105.89 KiB) Viewed 8893 times
Highend kicked the start and I developed a lot more. It's quite OK now.
Although without Highend's consent (I tried but cannot contact him), I still introduce here so that people can test & report bug. I will try to work with Regex to improve it further.
Note that XYS allow variables to be included in quotes, thus create significant problem for Regex to recognize plain string vs variables vs Keyword Operators. I gaveup formatting string at all.
The most powerful feature is contextual help: Place cursor on any command/commandID, press ctrl+enter will display relevant help (see Readme.md)
Download in the latest post here:
http://www.sublimetext.com/forum/viewto ... 575#p49575
https://github.com/Binocular222/XYplore ... blime-Text
-----------
Please report bugs / recommendations
Re: XYS syntax highlight for Sublime Text 3
Posted: 12 Jun 2013 05:06
by binocular222
@Don:
I think it's ok now to have a place in Lincense Lounge.
Official link:
https://github.com/Binocular222/XYplore ... blime-Text
Re: XYS syntax highlight for Sublime Text 3
Posted: 12 Jun 2013 08:52
by admin
OK, done, thanks! Looks very cool

Re: XYS syntax highlight for Sublime Text 3
Posted: 12 Jun 2013 13:27
by TheQwerty
Have you found any documentation on proper usage of the tmpreferences files?
As great as ST is their documentation might as well not exist - oh wait, it doesn't!
Re: XYS syntax highlight for Sublime Text 3
Posted: 12 Jun 2013 15:16
by binocular222
.tmpreferences need no documentation at all. Simply click Preferences → Setting Default. Instead of modifying this file, simply copy to .tmpreference and edit it there.
Re: XYS syntax highlight for Sublime Text 3
Posted: 12 Jun 2013 16:03
by TheQwerty
binocular222 wrote:.tmpreferences need no documentation at all. Simply click Preferences → Setting Default. Instead of modifying this file, simply copy to .tmpreference and edit it there.
Not sure how you can say they need no documentation with a straight face - surely you're smirking behind your monitor!!
I see no mention of shellVariables or TM_COMMENT_* in any of my preferences, but looking through the tmpreferences files included with other syntax definitions show tons of options that as far as I can tell are not documented anywhere!
//rants...
I've been trying to write a few different syntax definitions but I'm finding it really frustrating having nothing to base them on except the existing ones which don't even appear to contain comments explaining what they do. And the entire mess that results from a lack of standardized scopes!
GRRR - if they don't document ST3 on release I'll probably really regret when I upgrade my license!
Sorry for the outburst - thankfully this is not a problem with XYplorer as Don's documentation has rarely let me down!

Re: XYS syntax highlight for Sublime Text 3
Posted: 12 Jun 2013 16:21
by binocular222
I've not fully understand all tmpreferences, still studying. Documentation is extremely poor. Even though Sublime Text is still wayyyyyy better than other IDE
Re: XYS syntax highlight for Sublime Text 3
Posted: 13 Jun 2013 17:34
by RalphM
Wouldn't this thread better be placed in the Scripting section?
Re: XYS syntax highlight for Sublime Text 3
Posted: 13 Jun 2013 17:41
by admin
Yep, just moved it.
Re: XYS syntax highlight for Sublime Text 3
Posted: 14 Jun 2013 13:15
by 40k
Anyone interested in developing a syntax file for Notepad++? Shouldn't be too difficult considering the plug-in interface is really extensive.
Re: XYS syntax highlight for Sublime Text 3
Posted: 26 Jul 2013 13:55
by armsys
binocular222 wrote:Untitled20130610141930.png
Highend kicked the start and I developed a lot more. It's quite OK now.
Although without Highend's consent (I tried but cannot contact him), I still introduce here so that people can test & report bug. I will try to work with Regex to improve it further.
Note that XYS allow variables to be included in quotes, thus create significant problem for Regex to recognize plain string vs variables vs Keyword Operators. I gaveup formatting string at all.
I was aware of Sublime Text previously. I still prefer EditPad Pro. BTW, EditPad Pro also includes XY Script highlight syntax definition.
Re: XYS syntax highlight for Sublime Text 3
Posted: 30 Jan 2014 17:38
by binocular222
Updated with contextual help
Place cursor on any function/variable > ctrl+enter will open XYplorer.chm and jump to relevant page
Require to set XY path in XYplorer.sublime-settings
P.S I'm unable to do the Git properly. just created a squishy file but unable to delete. Please help. (I use web interface only, not the Gitbash)
https://github.com/Binocular222/XYplore ... plorer.chm
Re: XYS syntax highlight for Sublime Text 3
Posted: 23 Apr 2014 18:00
by bdeshi
You should remove the ST3 reference from the thread title, this is very much compatible with SublimeText2.
There are many incompatibilities between ST2&3, and I put off trying this out (I have ST2) just because it's name specifically states ST3

. Didn't know what I was missing: my favorite file manager and my favorite code editor united!
btw, hope the "squishy file" thing is solved.
Re: XYS syntax highlight for Sublime Text
Posted: 23 Apr 2014 18:10
by binocular222
Done. I'm too lazy to test in ST2.
Re: XYS syntax highlight for Sublime Text
Posted: 07 Dec 2014 21:21
by aliteralmind
Great stuff. Thanks.