Old 06-05-2014, 01:47 PM   #1
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default ReaSyntax: Sublime Text Syntax for JS/EEL/LUA/WALTER

I'm sure some of you here are using the fabulous Sublime Text and are disappointed by the fact that you can't code your favorite JS/EEL scripts and WALTER themes in it!

Well, no more! Proceed here to find out more about ReaSyntax installation and features.
Additionally, you can also get a separate JS Editor theme for Lua scripts here. Big thanks to the user earhax for providing it!

A lot of effort has been invested in this. If you seriously use it, please consider supporting the developer. Thanks!

Some screens:





__________________
REAPER ReWorked: An elegant and self-sufficient all-around REAPER configuration
Other stuff

Last edited by Breeder; 03-06-2021 at 10:43 PM.
Breeder is offline   Reply With Quote
Old 06-05-2014, 01:49 PM   #2
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Btw, don't hesitate to report any bugs!
Also, if somebody wants to create additional color schemes let me know and I can add you to the project (if you're not comfortable with git just PM your contribution and I will add it together with the copyright notice )

If mods could sticky this, it would be appreciated, thanks!
Breeder is offline   Reply With Quote
Old 06-05-2014, 02:02 PM   #3
timlloyd
Human being with feelings
 
Join Date: Mar 2010
Posts: 4,713
Default

Nice one Breeder, looks good
timlloyd is offline   Reply With Quote
Old 06-06-2014, 09:58 PM   #4
cincikat69
Human being with feelings
 
cincikat69's Avatar
 
Join Date: Apr 2012
Location: Cincinnati area...
Posts: 642
Default

So far it's proving very useful for theming...makes the WALTER process more tolerable, lol.

Thank you Breeder...
__________________
Theme Website
cincikat69 is offline   Reply With Quote
Old 06-08-2014, 01:41 AM   #5
TBProAudio
Human being with feelings
 
TBProAudio's Avatar
 
Join Date: May 2014
Location: Germany
Posts: 643
Default

Hey,

this is really great. If you work with big JS files this is a great time saver:-)
But there seems to be a small issue with the syntax detection feature:
opening files inside sublime works, also drag&drop.

But js autodection does not work using command line (windows 7):
typing "sublime_text testjsfx" on command line gives plain text syntax

Any idea? Thanks a lot.

regards
Thomas
__________________
www.tbproaudio.de
TBProAudio is offline   Reply With Quote
Old 06-08-2014, 07:50 AM   #6
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by TBProAudio View Post
But js autodection does not work using command line (windows 7):
typing "sublime_text testjsfx" on command line gives plain text syntax

Any idea? Thanks a lot.

regards
Thomas
Well, that appears to be a bug in Sublime Text...I guess we should report it on their forums or wherever they report bugs
Breeder is offline   Reply With Quote
Old 01-17-2020, 07:39 AM   #7
todoublez
Human being with feelings
 
todoublez's Avatar
 
Join Date: Aug 2019
Location: beijing
Posts: 612
Default couldn't find the LUA syntax (REAPER)

hi breeder,
after installing the ReaSyntax,
I went to the view> Syntax> ReaSyntax> here I only found :
  • EEL (REAPER)
  • JS (REAPER)
  • WALTER (REAPER)

this is the video I made.




My sublime text3 version : 3.2.2
I installed package control from : https://packagecontrol.io/installation
instructions I followed : https://github.com/Breeder/ReaSyntax/

after installing package control I tried these 2 method from the link above.
  • Using Package Control

    Install Package Control
    Use Cmd+Shift+P or Ctrl+Shift+P and search for Package Control: Install Package
    Wait for Package Control to download latest package list and search for ReaSyntax

  • Download manually

    Download zipped repository from here
    Unzip the files and rename the folder to ReaSyntax
    Find your Packages directory using the menu item Preferences -> Browse Packages...
    Copy the folder into your Sublime Text Packages directory

I supposed I would see LUA (REAPER) in the Syntax section.
is thrr anything I did wrong ?
or is it normal ?

Last edited by todoublez; 01-17-2020 at 07:52 AM.
todoublez is offline   Reply With Quote
Old 05-19-2020, 04:08 AM   #8
tompad
Human being with feelings
 
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 811
Default

Quote:
Originally Posted by todoublez View Post
I supposed I would see LUA (REAPER) in the Syntax section.
is thrr anything I did wrong ?
or is it normal ?
I think you shall use LUA.
I loaded a script and LUA was marked and the code completion
worked as it should.
__________________
ToDoList Obliques MusicMath Donation Some of mine and my friends music projects on Spotify
tompad is offline   Reply With Quote
Old 12-05-2020, 07:08 AM   #9
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Updated the ReaSyntax to 0.3.1

Changes are:
Code:
##### v0.3.1 (December 05 2020)
 * [Lua, EEL] Updated completions to match REAPER 6.18, SWS 2.12.1, ReaPack 1.2.3.1 and js_ReaScriptAPI 1.217
Breeder is offline   Reply With Quote
Old 12-06-2020, 11:47 AM   #10
tompad
Human being with feelings
 
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 811
Default

Quote:
Originally Posted by Breeder View Post
Updated the ReaSyntax to 0.3.1

Changes are:
Code:
##### v0.3.1 (December 05 2020)
 * [Lua, EEL] Updated completions to match REAPER 6.18, SWS 2.12.1, ReaPack 1.2.3.1 and js_ReaScriptAPI 1.217
Nice - thanks for your work!
__________________
ToDoList Obliques MusicMath Donation Some of mine and my friends music projects on Spotify
tompad is offline   Reply With Quote
Old 12-06-2020, 11:59 AM   #11
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by tompad View Post
Nice - thanks for your work!
Thanks man
Breeder is offline   Reply With Quote
Old 02-11-2021, 12:49 AM   #12
earhax
Human being with feelings
 
earhax's Avatar
 
Join Date: Nov 2015
Location: earth
Posts: 471
Default ReaSyntax JS Editor colors for Lua

So I decided to add JS Editor theme support for Lua script files because colors are important.



You can get the files here:

https://stash.reaper.fm/v/41332/ReaS...itor_Theme.zip

Just my way of showing my gratitude for an awesome ST3 package. Thanks, Breeder!

I'm not sure how the github thing works. But feel free to update it to include this stuff if you want.

Also, for anyone who does a lot of other Lua scripting in ST3, just a fair warning: this may also change the color scheme for Lua when you aren't working on Reaper scripts.
earhax is offline   Reply With Quote
Old 02-11-2021, 03:06 AM   #13
vitalker
Human being with feelings
 
vitalker's Avatar
 
Join Date: Dec 2012
Posts: 13,333
Default

Do you know guys last Reaper versions have some cool stuff?
  • autosuggest text (function names, variable names) while typing
  • add Ctrl+R for replace (after find), Ctrl+Return to insert line after current, Ctrl+J to jump to line number
  • support searching backwards via Ctrl+Shift+G or Shift+F3
  • double-clicking a user function name jumps to the function definition
  • improve search function, up/down changes search modes (substring, word, token)
  • reduce flicker in watch lists
  • show viewable line range in status line
  • add preference for watch window update interval
  • remember watch-enabled state
vitalker is online now   Reply With Quote
Old 02-11-2021, 06:04 AM   #14
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by earhax View Post
So I decided to add JS Editor theme support for Lua script files because colors are important.



You can get the files here:

https://stash.reaper.fm/v/41332/ReaS...itor_Theme.zip

Just my way of showing my gratitude for an awesome ST3 package. Thanks, Breeder!

I'm not sure how the github thing works. But feel free to update it to include this stuff if you want.

Also, for anyone who does a lot of other Lua scripting in ST3, just a fair warning: this may also change the color scheme for Lua when you aren't working on Reaper scripts.
THAAAAANK YOU!!!
I believe this 'may change other Lua scripts' could be remedied
through that small python script in the package that detects .eel scripts. I guess it could be modified to detect REAPER .lua scripts as well.

I'll put it in the first post for now cause God only knows how many people use Package Manager and we don't want to make such surprises unannounced.

Last edited by Breeder; 03-06-2021 at 10:43 PM.
Breeder is offline   Reply With Quote
Old 09-04-2021, 06:57 AM   #15
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Updated the ReaSyntax to 0.3.9

Changes are:
Code:
##### v0.3.9 (September 04 2021)
 * [Lua, EEL] Updated completions to match REAPER 6.36, js_ReaScriptAPI 1.220, ReaImGui 0.5.6, ReaPack 1.2.3.1 and SWS 2.12.1.3
Breeder is offline   Reply With Quote
Old 10-27-2021, 02:47 AM   #16
benmiller
Human being with feelings
 
benmiller's Avatar
 
Join Date: Dec 2015
Posts: 324
Default

this looks great!

sorry in advance for a probably stupid question:
is there any way of using this reasyntax in Atom? or easily adapting it for Atom? I guess the answer is no, but as i don't know much about this stuff i figured i might be wrong
benmiller is offline   Reply With Quote
Old 10-27-2021, 03:14 AM   #17
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

No idea, never heard of Atom
Breeder is offline   Reply With Quote
Old 11-04-2021, 03:58 AM   #18
benmiller
Human being with feelings
 
benmiller's Avatar
 
Join Date: Dec 2015
Posts: 324
Default

ok. fyi atom is an open source text editor developed by gihub https://atom.io/
benmiller is offline   Reply With Quote
Old 11-06-2021, 01:41 PM   #19
gxray
Human being with feelings
 
Join Date: Dec 2020
Location: Miami, FL USA
Posts: 396
Default

Quote:
Originally Posted by benmiller View Post
this looks great!

sorry in advance for a probably stupid question:
is there any way of using this reasyntax in Atom? or easily adapting it for Atom? I guess the answer is no, but as i don't know much about this stuff i figured i might be wrong
Yeah, you can use it in Atom from a quick google search I believe.
(Atom has been pretty dead[1] since Microsoft acquired Github, and put all the Atom devs onto VS Code development though, as an FYI)

The Textmate grammar files are what you need, in the repo they are the ones that end with ".tmLanguage"

So for example, here's the Eel one:

https://github.com/Breeder/ReaSyntax...EEL.tmLanguage

I googled "Atom textmate grammar", and from this tutorial, it seems you need the JSON form, not the XML form that is used in Breeder's repo.
The easiest way I know to convert between these formats is to:
  • Download VS Code
  • Install the "Textmate Languages" extension.
  • Press "Ctrl/Cmd + Shift + P" in VS Code with the ".tmLanguage" file open for Eel/WALTER that Breeder's repo provides, and run the command "Convert to JSON-tmLanguage"

Now with this JSON form of the Textmate grammar/language file, you can use it with Atom for syntax highlighting.
See the tutorial here on "Creating a legacy Textmate Grammar":
Click to see image guide: https://i.imgur.com/RyVgZxkh.png

-------------

Good reminder for me to donate to Breeder again for maintaining this (and other things) =P

__________________
Seasoned codemonkey
Dunno a thing about making music (here to learn!)

Last edited by gxray; 11-06-2021 at 01:50 PM.
gxray is offline   Reply With Quote
Old 11-08-2021, 10:00 AM   #20
benmiller
Human being with feelings
 
benmiller's Avatar
 
Join Date: Dec 2015
Posts: 324
Default

Quote:
Originally Posted by gxray View Post
Yeah, you can use it in Atom from a quick google search I believe.
(Atom has been pretty dead[1] since Microsoft acquired Github, and put all the Atom devs onto VS Code development though, as an FYI)

The Textmate grammar files are what you need, in the repo they are the ones that end with ".tmLanguage"
...
cool, thanks for the helpful info! I'll try this when i get the time.
benmiller is offline   Reply With Quote
Old 11-09-2021, 01:12 AM   #21
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by gxray View Post
Yeah, you can use it in Atom from a quick google search I believe.
(Atom has been pretty dead[1] since Microsoft acquired Github, and put all the Atom devs onto VS Code development though, as an FYI)

The Textmate grammar files are what you need, in the repo they are the ones that end with ".tmLanguage"

So for example, here's the Eel one:

https://github.com/Breeder/ReaSyntax...EEL.tmLanguage

I googled "Atom textmate grammar", and from this tutorial, it seems you need the JSON form, not the XML form that is used in Breeder's repo.
The easiest way I know to convert between these formats is to:
  • Download VS Code
  • Install the "Textmate Languages" extension.
  • Press "Ctrl/Cmd + Shift + P" in VS Code with the ".tmLanguage" file open for Eel/WALTER that Breeder's repo provides, and run the command "Convert to JSON-tmLanguage"

Now with this JSON form of the Textmate grammar/language file, you can use it with Atom for syntax highlighting.
See the tutorial here on "Creating a legacy Textmate Grammar":
Click to see image guide: https://i.imgur.com/RyVgZxkh.png

-------------

Good reminder for me to donate to Breeder again for maintaining this (and other things) =P
Thank you! And also thank you for the extended information on this!

P.S.
I had to try Visual Studio Code and I can honestly say it's pretty nice, never heard of Atom as its precursor until now so thank you for the history lesson.

Last edited by Breeder; 11-09-2021 at 01:41 AM.
Breeder is offline   Reply With Quote
Old 12-22-2021, 02:03 AM   #22
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Updated the ReaSyntax to 0.4.0

Changes are:
Code:
##### v0.4.0 (December 22 2021)
 * [Lua, EEL] Updated completions to match REAPER 6.43, js_ReaScriptAPI 1.220, ReaImGui 0.5.8, ReaPack 1.2.3.1 and SWS 2.13.0.0
Breeder is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:30 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.