XYS syntax highlight for Sublime Text

Discuss and share scripts and script files...
binocular222
Posts: 1418
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

XYS syntax highlight for Sublime Text

Post by binocular222 »

Untitled20130610141930.png
Untitled20130610141930.png (105.89 KiB) Viewed 8414 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
Last edited by binocular222 on 09 Dec 2014 12:50, edited 3 times in total.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

binocular222
Posts: 1418
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: XYS syntax highlight for Sublime Text 3

Post 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
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

admin
Site Admin
Posts: 64241
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: XYS syntax highlight for Sublime Text 3

Post by admin »

OK, done, thanks! Looks very cool :cup:
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: XYS syntax highlight for Sublime Text 3

Post 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!

binocular222
Posts: 1418
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: XYS syntax highlight for Sublime Text 3

Post 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.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: XYS syntax highlight for Sublime Text 3

Post 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!! :P

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! :roll:

GRRR - if they don't document ST3 on release I'll probably really regret when I upgrade my license! :twisted:


Sorry for the outburst - thankfully this is not a problem with XYplorer as Don's documentation has rarely let me down! :appl:

binocular222
Posts: 1418
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: XYS syntax highlight for Sublime Text 3

Post 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
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

RalphM
Posts: 2028
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: XYS syntax highlight for Sublime Text 3

Post by RalphM »

Wouldn't this thread better be placed in the Scripting section?
Ralph :)
(OS: W11 24H2 Home x64 - XY: Current x32 beta - Office 2024 32-bit - Display: 1920x1080 @ 125%)

admin
Site Admin
Posts: 64241
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: XYS syntax highlight for Sublime Text 3

Post by admin »

Yep, just moved it.
FAQ | XY News RSS | XY X - Forum users with the Windows version and screen scaling percentage in the Location field of their profiles get priority support.

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: XYS syntax highlight for Sublime Text 3

Post by 40k »

Anyone interested in developing a syntax file for Notepad++? Shouldn't be too difficult considering the plug-in interface is really extensive.
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

armsys
Posts: 557
Joined: 10 Mar 2012 12:40
Location: Hong Kong

Re: XYS syntax highlight for Sublime Text 3

Post 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.

binocular222
Posts: 1418
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: XYS syntax highlight for Sublime Text 3

Post 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
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: XYS syntax highlight for Sublime Text 3

Post 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! :biggrin:

btw, hope the "squishy file" thing is solved.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

binocular222
Posts: 1418
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: XYS syntax highlight for Sublime Text

Post by binocular222 »

Done. I'm too lazy to test in ST2.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

aliteralmind
Posts: 261
Joined: 02 Dec 2014 16:49

Re: XYS syntax highlight for Sublime Text

Post by aliteralmind »

Great stuff. Thanks.
Windows 8.1, 64-bit

Post Reply