Go Back   Cockos Incorporated Forums > REAPER Forums > ReaScript, JSFX, REAPER Plug-in Extensions, Developer Forum

Reply
 
Thread Tools Display Modes
Old 11-09-2021, 01:12 AM   #81
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   #82
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
Old 01-19-2022, 03:37 PM   #83
Mavriq
Human being with feelings
 
Mavriq's Avatar
 
Join Date: Aug 2016
Location: Thunder Bay, Canada
Posts: 297
Default

Huge thanks for this. I don't know how I would script without sublime!
Mavriq is offline   Reply With Quote
Old 01-19-2022, 03:55 PM   #84
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by gvanbrunt View Post
Huge thanks for this. I don't know how I would script without sublime!
Me neither, best program ever

Thanks man!
Breeder is offline   Reply With Quote
Old 02-12-2022, 04:45 AM   #85
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Updated the ReaSyntax to 0.4.1

Changes are:
Code:
##### v0.4.1 (February 22 2022)
 * [Lua, EEL] Updated completions to match REAPER 6.47, js_ReaScriptAPI 1.301, ReaImGui 0.5.10, ReaPack 1.2.3.1 and SWS 2.13.0.0
Breeder is offline   Reply With Quote
Old 04-02-2022, 07:30 AM   #86
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Updated the ReaSyntax to 0.4.2

Changes are:
Code:
##### v0.4.2 (April 02 2022)
 * [Lua, EEL] Updated completions to match REAPER 6.53, js_ReaScriptAPI 1.301, ReaImGui 0.6.1, ReaPack 1.2.4 and SWS 2.13.0.0
Breeder is offline   Reply With Quote
Old 10-05-2022, 09:42 AM   #87
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 9,875
Default

Hi Breeder !


Have you considered adding syntax for .ReaperLangPack as well ?
Like I did for Notepad++ (see my first post on this thread :P)


Cheers !
X-Raym is offline   Reply With Quote
Old 10-05-2022, 11:12 AM   #88
earhax
Human being with feelings
 
earhax's Avatar
 
Join Date: Nov 2015
Location: earth
Posts: 471
Default

In case anyone is interested, I went ahead and updated the Lua sublime-completions file to v 6.64, and also added in the completions from Lua Extended syntax for Lua functions.

I also made a reference file for all of the reaper.function() functions using the text from the Ultraschall version of the Reascript API documentation (since it was more descriptive than the native API documentation). With this file open in your Sublime Text project, it allows the use of the "Goto Definition..." command in Sublime Text to work so that, anytime additional info is wanted on a particular function used in a script, one can quickly & easily jump to it.

https://stash.reaper.fm/45377/ReaSyn...me-completions
https://stash.reaper.fm/45378/Reaper...ation-6.64.lua

------
For anyone who may be so inclined:
you can $donate here$.
earhax is offline   Reply With Quote
Old 01-04-2023, 11:59 PM   #89
Breeder
Human being with feelings
 
Breeder's Avatar
 
Join Date: Nov 2010
Posts: 2,436
Default

Quote:
Originally Posted by earhax View Post
In case anyone is interested, I went ahead and updated the Lua sublime-completions file to v 6.64, and also added in the completions from Lua Extended syntax for Lua functions.

I also made a reference file for all of the reaper.function() functions using the text from the Ultraschall version of the Reascript API documentation (since it was more descriptive than the native API documentation). With this file open in your Sublime Text project, it allows the use of the "Goto Definition..." command in Sublime Text to work so that, anytime additional info is wanted on a particular function used in a script, one can quickly & easily jump to it.

https://stash.reaper.fm/45377/ReaSyn...me-completions
https://stash.reaper.fm/45378/Reaper...ation-6.64.lua

------
For anyone who may be so inclined:
you can $donate here$.
Thanks man!

I can add you to the project on github if you want to, just PM me the details of your github account.
Breeder is offline   Reply With Quote
Old 01-06-2023, 03:57 PM   #90
Mavriq
Human being with feelings
 
Mavriq's Avatar
 
Join Date: Aug 2016
Location: Thunder Bay, Canada
Posts: 297
Default

Always interested! This project is much appreciated.
Mavriq is offline   Reply With Quote
Old 01-06-2023, 07:33 PM   #91
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Quote:
Originally Posted by earhax View Post
I also made a reference file for all of the reaper.function() functions using the text from the Ultraschall version of the Reascript API documentation (since it was more descriptive than the native API documentation). With this file open in your Sublime Text project, it allows the use of the "Goto Definition..." command in Sublime Text to work so that, anytime additional info is wanted on a particular function used in a script, one can quickly & easily jump to it.
Woooow!
Can you tell me how to install this lua file in sublime text for it to work?
lexaproductions is offline   Reply With Quote
Old 01-08-2023, 04:12 PM   #92
earhax
Human being with feelings
 
earhax's Avatar
 
Join Date: Nov 2015
Location: earth
Posts: 471
Default

Quote:
Originally Posted by lexaproductions View Post
Woooow!
Can you tell me how to install this lua file in sublime text for it to work?
IIRC (not at my computer rn), you just need to have the lua file(s) open in the same Sublime Text window that you're currently editing a lua script in. It might also work if you have a folder in your active window's project that contains the file(s).

Let me know if this doesn't work or if you still have any trouble with it.
earhax is offline   Reply With Quote
Old 01-08-2023, 06:47 PM   #93
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,126
Default

Ok I think I just understood, Thanks!!!
lexaproductions 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 04:45 AM.


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