Highlight.js has xTalk (LC Server) language support

Organizing tasks to work on, New Features Ideas, Building LCS & LCB Libraries & Widgets, Redecorating and Modifying the IDE, Hacking / Editing Tools, Compiling the Engine from Source, etc.
Post Reply
User avatar
OpenXTalkPaul
Posts: 2633
Joined: Sat Sep 11, 2021 4:19 pm
Contact:

Highlight.js has xTalk (LC Server) language support

Post by OpenXTalkPaul »

Highlight.js has xTalk / OXT (Server) language support, which is nice.
If you've ever poked around at the innards of the Dictionary stack, you'd see that employs Highlight.js to do its formatting inside a Browser Widget instance too, only its restricted there to "black on blindingly bright white" color scheme.

https://github.com/livecode/livecode-id ... _viewer/js

The rev .lc language pack made it upstream to the JS lib and so you can use this demo page to see it in action in darkmode. Just go to https://highlightjs.org/demo and paste in some script, it should detect the language automatically. But it could guess "AppleScript" too depending on the script.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest