Hey guys!
I know this is nothing new, syntax highlighting has been implemented in every language since the dawn of multi-colored screens. But I can't seem to find someone that's implemented it in LiveCode. I'm more of the C-like syntax type coder and so I kinda need help here. I want make an IDE for a custom language I'm creating. I think LiveCode would be a great language to write this part in since I can make a cross-platform UI, but then use get shell() to talk to the compiler for my custom language. But all this syntax highlighting is confusing on its own. Add to it LC's syntax (which confuses me) and I'm sort of between a rock and a hard place.
I'd really appreciate any help at all!
Thanks!
EssoAir
Writing a custom syntax highlighter?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Writing a custom syntax highlighter?
Everyhthing in the LiveCode IDE is written in LiveCode. You can explore things like the Script Editor's syntax highlighting by choosing "LiveCode UI elements appear in lists of stacks" in the Preferences window.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: Writing a custom syntax highlighter?
Do you mean syntax highlighting by colors only?
The stack #44 (Nuzzler7b.livecode) of the "RaspberryPi Stacks" collection contains a colorizing script (= lines 70-294 of the stack's script; this is from the use-list archive by W. Abraham et al.).
You could use this as a base for your work relating to LiveCode scripts.
The stack #44 (Nuzzler7b.livecode) of the "RaspberryPi Stacks" collection contains a colorizing script (= lines 70-294 of the stack's script; this is from the use-list archive by W. Abraham et al.).
You could use this as a base for your work relating to LiveCode scripts.
shiftLock happens
Re: Writing a custom syntax highlighter?
Thanks guy! I'm not really sure yet, tbh. I'm just trying to figure everything out. I'll have to check out both of those suggestions once I get to the implementation stage.
Re: Writing a custom syntax highlighter?
Check out therecent thread in the "Features" section of the forum about this issue.
Craig Newman
Craig Newman
Re: Writing a custom syntax highlighter?
See the spectacular results of a great detective in the "feature request" forum. All is right with the world.
Craig Newman
Craig Newman