Quick tip for anyone using sublimetext

Helpful script writing tricks and HowTo's
User avatar
KuroiLight
Posts: 259
Joined: 12 Apr 2015, 20:24
GitHub: KuroiLight

Quick tip for anyone using sublimetext

21 Sep 2017, 02:18

Not sure if this should go in this section or another, but it pertains to writing AHK code using the available plugin in sublime_text.

Heres a quick fix a highlighting issue that occurs when writing in OneTrueBrace style with if statements
the issue is with this line (78) in the tmLanguage file: https://github.com/ahkscript/SublimeAut ... nguage#L78
just change the regex to ^\s*((?!\bif\b)\w+)(\()(.*)(\))\s*({)\s*(;?.*)$
This issue can still occur with other statements unless its expanded for those too. but it was most commonly annoying on if statements.

:salute:
Windows 10, Ryzen 1600, 16GB G.Skill DDR4, 8GB RX 480 | [MyScripts][MySublimeSettings] [Unlicense][MIT License]
BoBo
Posts: 1618
Joined: 13 May 2014, 17:15

Re: Quick tip for anyone using sublimetext

23 Sep 2017, 02:42

KuroiLight wrote:Not sure if this should go in this section or another, but it pertains to writing AHK code using the available plugin in sublime_text.

Heres a quick fix a highlighting issue that occurs when writing in OneTrueBrace style with if statements
the issue is with this line (78) in the tmLanguage file: https://github.com/ahkscript/SublimeAut ... nguage#L78
just change the regex to ^\s*((?!\bif\b)\w+)(\()(.*)(\))\s*({)\s*(;?.*)$
This issue can still occur with other statements unless its expanded for those too. but it was most commonly annoying on if statements.

:salute:
:thumbup:

Return to “Tutorials”

Who is online

Users browsing this forum: burque505, Joe Glines and 2 guests