|
|
|
06-05-2014, 01:47 PM
|
#1
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
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.
|
|
|
06-05-2014, 01:49 PM
|
#2
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
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!
|
|
|
06-05-2014, 02:02 PM
|
#3
|
Human being with feelings
Join Date: Mar 2010
Posts: 4,713
|
Nice one Breeder, looks good
|
|
|
06-06-2014, 09:58 PM
|
#4
|
Human being with feelings
Join Date: Apr 2012
Location: Cincinnati area...
Posts: 642
|
So far it's proving very useful for theming...makes the WALTER process more tolerable, lol.
Thank you Breeder...
|
|
|
06-08-2014, 01:41 AM
|
#5
|
Human being with feelings
Join Date: May 2014
Location: Germany
Posts: 643
|
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
|
|
|
06-08-2014, 07:50 AM
|
#6
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
Quote:
Originally Posted by TBProAudio
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
|
|
|
01-17-2020, 07:39 AM
|
#7
|
Human being with feelings
Join Date: Aug 2019
Location: beijing
Posts: 612
|
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.
|
|
|
05-19-2020, 04:08 AM
|
#8
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 811
|
Quote:
Originally Posted by todoublez
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.
|
|
|
12-05-2020, 07:08 AM
|
#9
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
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
|
|
|
12-06-2020, 11:47 AM
|
#10
|
Human being with feelings
Join Date: Jan 2010
Location: Fjugesta, Sweden
Posts: 811
|
Quote:
Originally Posted by Breeder
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!
|
|
|
12-06-2020, 11:59 AM
|
#11
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
Quote:
Originally Posted by tompad
Nice - thanks for your work!
|
Thanks man
|
|
|
02-11-2021, 12:49 AM
|
#12
|
Human being with feelings
Join Date: Nov 2015
Location: earth
Posts: 471
|
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.
|
|
|
02-11-2021, 03:06 AM
|
#13
|
Human being with feelings
Join Date: Dec 2012
Posts: 13,333
|
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
|
|
|
02-11-2021, 06:04 AM
|
#14
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
Quote:
Originally Posted by earhax
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.
|
|
|
09-04-2021, 06:57 AM
|
#15
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
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
|
|
|
10-27-2021, 02:47 AM
|
#16
|
Human being with feelings
Join Date: Dec 2015
Posts: 324
|
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
|
|
|
10-27-2021, 03:14 AM
|
#17
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
No idea, never heard of Atom
|
|
|
11-04-2021, 03:58 AM
|
#18
|
Human being with feelings
Join Date: Dec 2015
Posts: 324
|
ok. fyi atom is an open source text editor developed by gihub https://atom.io/
|
|
|
11-06-2021, 01:41 PM
|
#19
|
Human being with feelings
Join Date: Dec 2020
Location: Miami, FL USA
Posts: 396
|
Quote:
Originally Posted by benmiller
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
Quote:
[1]: See below
Atom Commit Timeline:
VS Code Commit Timeline:
|
__________________
Seasoned codemonkey
Dunno a thing about making music (here to learn!)
Last edited by gxray; 11-06-2021 at 01:50 PM.
|
|
|
11-08-2021, 10:00 AM
|
#20
|
Human being with feelings
Join Date: Dec 2015
Posts: 324
|
Quote:
Originally Posted by gxray
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.
|
|
|
11-09-2021, 01:12 AM
|
#21
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
Quote:
Originally Posted by gxray
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.
|
|
|
12-22-2021, 02:03 AM
|
#22
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
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
|
|
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 03:30 AM.
|