|
|
|
11-09-2021, 01:12 AM
|
#81
|
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
|
#82
|
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
|
|
|
01-19-2022, 03:37 PM
|
#83
|
Human being with feelings
Join Date: Aug 2016
Location: Thunder Bay, Canada
Posts: 297
|
Huge thanks for this. I don't know how I would script without sublime!
|
|
|
01-19-2022, 03:55 PM
|
#84
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
Quote:
Originally Posted by gvanbrunt
Huge thanks for this. I don't know how I would script without sublime!
|
Me neither, best program ever
Thanks man!
|
|
|
02-12-2022, 04:45 AM
|
#85
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
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
|
|
|
04-02-2022, 07:30 AM
|
#86
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
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
|
|
|
10-05-2022, 09:42 AM
|
#87
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,875
|
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 !
|
|
|
10-05-2022, 11:12 AM
|
#88
|
Human being with feelings
Join Date: Nov 2015
Location: earth
Posts: 471
|
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$.
|
|
|
01-04-2023, 11:59 PM
|
#89
|
Human being with feelings
Join Date: Nov 2010
Posts: 2,436
|
Quote:
Originally Posted by earhax
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.
|
|
|
01-06-2023, 03:57 PM
|
#90
|
Human being with feelings
Join Date: Aug 2016
Location: Thunder Bay, Canada
Posts: 297
|
Always interested! This project is much appreciated.
|
|
|
01-06-2023, 07:33 PM
|
#91
|
Human being with feelings
Join Date: Jan 2013
Posts: 1,126
|
Quote:
Originally Posted by earhax
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?
|
|
|
01-08-2023, 04:12 PM
|
#92
|
Human being with feelings
Join Date: Nov 2015
Location: earth
Posts: 471
|
Quote:
Originally Posted by lexaproductions
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.
|
|
|
01-08-2023, 06:47 PM
|
#93
|
Human being with feelings
Join Date: Jan 2013
Posts: 1,126
|
Ok I think I just understood, Thanks!!!
|
|
|
Thread Tools |
|
Display Modes |
Linear 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 04:45 AM.
|