LiveCode lexer for SynWrite/CudaText
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
LiveCode lexer for SynWrite/CudaText
SynWrite/CudaText editor now has lexer for LiveCode,
it supports most keywords hilites (4 colors of them: keywords, funcs, const, operators).
code folding for if/repeat/switch/try + code blocks (on/command/etc).
How to install in CudaText:
- CudaText needs OS's python.
== For MacOS: install any latest 3.x Python from www_python_org (Cudatext must find it in default folder)
== For Linux: Python already installed, only correct option "pylib__linux" in user.json.
== For Windows: Python shipped with Cudatext
- Plugins menu will be enabled
- call Plugins/ AddonManager/ Install
- in this add-ons dialog, find item "lexer: LiveCode"
- install it
Open any file .livecodescript. Cudatext activates LiveCode lexer on it. Statusbar click can change lexer to LiveCode (if need).
Looks like this
it supports most keywords hilites (4 colors of them: keywords, funcs, const, operators).
code folding for if/repeat/switch/try + code blocks (on/command/etc).
How to install in CudaText:
- CudaText needs OS's python.
== For MacOS: install any latest 3.x Python from www_python_org (Cudatext must find it in default folder)
== For Linux: Python already installed, only correct option "pylib__linux" in user.json.
== For Windows: Python shipped with Cudatext
- Plugins menu will be enabled
- call Plugins/ AddonManager/ Install
- in this add-ons dialog, find item "lexer: LiveCode"
- install it
Open any file .livecodescript. Cudatext activates LiveCode lexer on it. Statusbar click can change lexer to LiveCode (if need).
Looks like this
Last edited by Alextp on Sat Jan 07, 2017 11:34 am, edited 6 times in total.
Re: LiveCode lexer for SynWrite/CudaText
Hi Alextp,
1. welcome to the forum!
2. For all other Livecoders:
SynWrite is obviously a Windows-only codeeditor, see this website:
http://www.uvviewsoft.com/synwrite/
Cudatext is available for Win, Mac and Linux
http://www.uvviewsoft.com/cudatext/
Best
Klaus
1. welcome to the forum!
2. For all other Livecoders:
SynWrite is obviously a Windows-only codeeditor, see this website:
http://www.uvviewsoft.com/synwrite/
Cudatext is available for Win, Mac and Linux
http://www.uvviewsoft.com/cudatext/
Best
Klaus
-
- Livecode Opensource Backer
- Posts: 9385
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: LiveCode lexer for SynWrite/CudaText
So I downloaded CudaText for Macintosh,
and downloaded the ZIP file with all the add-ons (none which seemed to be for Livecode:
a bit silly, especially as the Plugins/Addon Manager menu appears to be greyed out.
and downloaded the ZIP file with all the add-ons (none which seemed to be for Livecode:
Well, for those of us who have never seen CudaText before that "as usual" isuse AddonManager as usual
a bit silly, especially as the Plugins/Addon Manager menu appears to be greyed out.
Re: LiveCode lexer for SynWrite/CudaText
Ok, here's details, how to install in CudaText:
Now open any file .livecodescript. Cudatext activates LiveCode lexer on it. Statusbar click can change lexer to LiveCode (if need)- CudaText needs OS's python.
== For MacOS: install any latest 3.x Python from www_python_org (Cudatext must find it in default folder)
== For Linux: Python already installed, only correct option "pylib__linux" in user.json.
== For Windows: Python shipped with Cudatext
- Plugins menu will be enabled
- call Plugins/ AddonManager/ Install
- in this add-ons dialog, find item "lexer: LiveCode"
- install it
-
- Livecode Opensource Backer
- Posts: 9385
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: LiveCode lexer for SynWrite/CudaText
Thank you for putting me right as to Python.
on my machine to save my life; only .livecode files which CudaText open in a
completely unreadable format.
I must be missing something entirely; I cannot find any sort of .livecodescript fileNow open any file .livecodescript
on my machine to save my life; only .livecode files which CudaText open in a
completely unreadable format.
Re: LiveCode lexer for SynWrite/CudaText
Hm, interesting... I see syntax for SublimeText3. It has file extent "livecodescript". Only. Which file extensions should lexer have?
github _ com /trevordevore/livecode-sublimetext/blob/master/LiveCode.sublime-syntax
github _ com /trevordevore/livecode-sublimetext/blob/master/LiveCode.sublime-syntax
Re: LiveCode lexer for SynWrite/CudaText
Only because Richmond does not have a .livecodescript file on his machine
does not mean that this is the wrong file extension for lexer!
@Richmond
Come on, we are obviously talking about TEXT editors here and .livecode files are binary stuff!
So what did you exspect?
Maybe this is something you just don't need?
does not mean that this is the wrong file extension for lexer!
@Richmond
Come on, we are obviously talking about TEXT editors here and .livecode files are binary stuff!
So what did you exspect?
Maybe this is something you just don't need?
-
- Livecode Opensource Backer
- Posts: 9385
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: LiveCode lexer for SynWrite/CudaText
Yes; the whole thing seemed a bit odd . . .Come on
No: I don't, but people don't have to climb Mount Everest either.Maybe this is something you just don't need?
I have only rarely used anything other than the LiveCode built-in scriptEditor: I copy-pasted very long scripts into
Mac PPC's "AppleWorks" at one time as I found that it's search-and-replace worked rather better at the time (LiveCode/Revolution 2.0).
So, @Klaus, Please "put me out of my misery" and explain how, for the sake of argument,
I might go about working with a .livecodescript document.
Re: LiveCode lexer for SynWrite/CudaText
Hi Richmond,
I, too, do not have the need for any external script editor.
Check the content of folder "Tools/Toolset/..." in your Liveocde folder, there you will find MANY examples of this new kind of stack/script file.
Best
Klaus
I, too, do not have the need for any external script editor.
Since version 8 (?) we can have SCRIPT only stacks, which are in fact simple text files with the extension .livecodescript.Please "put me out of my misery"
Check the content of folder "Tools/Toolset/..." in your Liveocde folder, there you will find MANY examples of this new kind of stack/script file.
Best
Klaus
-
- Livecode Opensource Backer
- Posts: 9385
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: LiveCode lexer for SynWrite/CudaText
You know me: stuck in a Retro time-machineSince version 8
Tools/Toolset/libraries . . . Oh, Yes :/
Re: LiveCode lexer for SynWrite/CudaText
@Richmond
text not hilited, reason: lexer not installed? Click on statusbar "(none)", lexer list shows, no LiveCode in list?
text not hilited, reason: lexer not installed? Click on statusbar "(none)", lexer list shows, no LiveCode in list?