Old 07-11-2014, 11:34 AM   #1
spk77
Human being with feelings
 
Join Date: Aug 2012
Location: Finland
Posts: 2,514
Default EEL language file for Notepad++ (syntax highlighting)

Breeder recently made ReaSyntax: Sublime Text Syntax for JS/EEL/WALTER http://forum.cockos.com/showthread.php?t=141221 (thanks Breeder)

Here's a language file for those who use Notepad++ (this is for EEL scripts). All the current ReaScript API functions (REAPER v4.7) are added to the keyword list.

Download link:
https://stash.reaper.fm/21185/EEL2%20...epad%2B%2B.zip

EEL2 language file for Notepad++ (I'm using "Deep Black" theme)


It's based on Tale's "JSFX dark" language file for NP++" http://forum.cockos.com/showpost.php...72&postcount=7


Instructions
  • Selecting theme and importing the language file:


  • Registering eel extension in NP++ (don't know if it's necessary, but I did it anyway):

Last edited by spk77; 07-17-2014 at 10:50 PM. Reason: added a better screenshot
spk77 is offline   Reply With Quote
Old 01-05-2015, 06:15 AM   #2
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default

How could I missed that ! I also made some synthax highlight config file for REAPER (walter) !

Thanks for sharing
X-Raym is offline   Reply With Quote
Old 01-05-2015, 07:22 AM   #3
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 18,028
Default

Is this, http://notepad-plus-plus.org/ , the right site for downloading Notepad++?
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Old 01-05-2015, 07:25 AM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default

Yep
X-Raym is offline   Reply With Quote
Old 01-05-2015, 08:40 AM   #5
Nixon
Human being with feelings
 
Nixon's Avatar
 
Join Date: Dec 2011
Posts: 275
Default

I wonder if there are any plans to include autocompletion in reaper IDE.
__________________
Item FX Sends -
Nixon is offline   Reply With Quote
Old 01-05-2015, 08:44 AM   #6
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default

It would be nice, but there is other basic functions I missed in the REAPER 5.0pre3 IDE,
such as line number, search and replace...
But sure, it is very handy to be able to do such thing inside of reaper, for quick editing !
X-Raym is offline   Reply With Quote
Old 04-07-2015, 11:38 PM   #7
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default Monokai and Autocompletion

If anyone is interested, I made a Monokai version of spk77 EEL, and a Lua version of my Monokai EEL. I also added reaper functions basic autocompletion (keyword based), based on breeder's work too.


Infos and archive on Stash:
Notepad++ ReaScript Monokai

X-Raym is offline   Reply With Quote
Old 04-08-2015, 12:47 AM   #8
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,433
Default

@X-Raym. Thanks. I tried to import the xml in the User defined language window but it says "Fail to import". I don't know what I am doing wrong.
heda is offline   Reply With Quote
Old 04-08-2015, 01:02 AM   #9
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default

@heda
OK my bad !

eel.xml and lua.xml are for autocompletion.

The EEL UDL is eel_udl. I forgot to add .xml :P (notepad export doesn't add it)

EDIT: readme and archive updated.

Last edited by X-Raym; 04-08-2015 at 01:10 AM.
X-Raym is offline   Reply With Quote
Old 04-08-2015, 01:38 AM   #10
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,433
Default

ahhhh.. ok.. my bad too...
I was interested in the Lua one. I already have EEL configured, but I wanted just to add the REAPER Lua functions highlighting.
But I'm not sure if I need to replace lua.xml in plugins\APIs.. I already have one there and it is 225 KB, while yours is only 38KB?
heda is offline   Reply With Quote
Old 04-08-2015, 02:28 AM   #11
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default

@heda
I changed some Lua color directly on the Monokai theme (as it is not a user defined language). Lua.xml is for autocompletion. (I dont know why yours is bigger ^^).
REAPER Lua functions highlighting is made by adding functions froms the functions list inside the Monokai/Lua preferences into Functions/User.



Tell me if it works for you
X-Raym is offline   Reply With Quote
Old 04-08-2015, 02:47 AM   #12
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,433
Default

yes it works perfectly.
I was doing all wrong, trying to do a custom language as in EEL.
Also I remember now I think I downloaded a lua.xml from somewhere when I was starting with Lua. but maybe it was not needed since Notepad++ already supported Lua... anyway... all good
heda is offline   Reply With Quote
Old 04-08-2015, 03:31 AM   #13
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default

@heda
Perfect
Can't wait to see what you will do with it :P

I saw there is way to make more advanced auto-completion with variable help/infos for each functions but I would take so much time to do it, and it may be not very useful, as we still will have to have the API doc open somewhere (is that proper english ? hm...).
X-Raym is offline   Reply With Quote
Old 04-10-2015, 03:59 PM   #14
heda
Human being with feelings
 
heda's Avatar
 
Join Date: Jun 2012
Location: Spain
Posts: 5,433
Default

hi... I've just seen that there are some missing functions in the list for color highlight syntax.
you can add also these:

Code:
reaper.atexit
gfx.circle
gfx.getpixel
gfx.printf
gfx.setpixel
.copy
reaper.defer
gfx.deltablit
gfx.gradrect
gfx.quit
gfx.showmenu
.fft
reaper.get_action_context
gfx.dock
gfx.init
gfx.rect
gfx.transformblit
.get_alloc
gfx.r
gfx.g
gfx.b
gfx.a
gfx.w
gfx.h
gfx.x
gfx.y
gfx.mode
gfx.clear
gfx.dest
gfx.texth
gfx.ext_retina
gfx.mouse_x
gfx.mouse_y
gfx.mouse_wheel
gfx.mouse_hwheel
gfx.mouse_cap
gfx.drawchar
gfx.line
gfx.rectto
gfx.triangle
.ifft
gfx.arc
gfx.drawnumber
gfx.lineto
gfx.roundrect
gfx.update
.multiply
gfx.blit
gfx.drawstr
gfx.loadimg
gfx.set
new_array
.resize
gfx.blit
gfx.getchar
gfx.measurechar
gfx.setcursor
runloop
.table
gfx.blitext
gfx.getfont
gfx.measurestr
gfx.setfont
.clear
gfx.blurto
gfx.getimgdim
gfx.muladdrect
gfx.setimgdim
.convolve

Last edited by heda; 04-10-2015 at 06:14 PM.
heda is offline   Reply With Quote
Old 04-10-2015, 04:08 PM   #15
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default

@heda
Juts updated my pack with better background colors for EEL, font consitency fix, and of course, your functions !
X-Raym is offline   Reply With Quote
Old 10-23-2017, 01:44 AM   #16
HoJo
Human being with feelings
 
Join Date: Dec 2007
Location: Germany
Posts: 211
Default Notepad++ Auto-Completion not working?

Hi Heda, Hi X-Raym.

I followed your steps (I'm on Win 10 64 and / or Win 7 64), but it looks like, the Auto-completion (as I understand it) doesn't work on my machine.

Is it meant to be working for *.lua as well, or did I misinterpret?

Whenever I try to type in "reaper.c" to get an auto-completion of e.g. "reaper.CountTakes" it will give me some random "reaper.API.." something entries in that list....maybe there is a way to clean up Noteptad++' cache?!

Did I miss something important?!

Apart of that:
I can not find a folder: C:\Program Files (x86)\Notepad++\themes
BUt I used C:\Users\AppData\Roaming\Notepad++\themes instead

Thanks upfront.
HoJo
HoJo is offline   Reply With Quote
Old 10-23-2017, 03:10 AM   #17
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 6,041
Default

@Hojo
Hi !

I dont remember exactly how it works,
I used Atom editor now,
with this for autocompletion :
https://forum.cockos.com/showthread.php?t=173434

Atom is easier to customize and is cross platform.
X-Raym is offline   Reply With Quote
Old 10-23-2017, 05:33 AM   #18
HoJo
Human being with feelings
 
Join Date: Dec 2007
Location: Germany
Posts: 211
Default Can not get it towk in Atom

Hi X-Raym.

Thanks for the hint, but I can not get it to work in Atom.
But meanwhile I was able to get it to work with Sublime.
Thats a start. Nevertheless, If you have some steps for the dumb, I'd be glad to try them out to make it work in Atom as well :-)

BR,
HoJo
HoJo 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:15 AM.


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