Jump to content
Fritigern Gothly

LSL Syntax Highlighting

Recommended Posts

Today I responded to a scripting question for the first time in this forum and was rather shocked to find that there is no syntax highlighting for LSL installed.
The best that we can do is apply the highlighting for one of the other languages, but I would expect LSL highlighting to be an absolute must on official SL forums.

Below, I used the highlighting for CSS, but that's far from ideal, of course. I would be interested to find out how come we don't have LSL highlighting and basically have to make do.

 

default
{
    state_entry()
    {   
        llOwnerSay("Foo");
    }
}

 

  • Like 1

Share this post


Link to post
Share on other sites

You would think .. and there are a few syntax definitions for various editors already, so it's not like they would need to reinvent the wheel.

  • Like 1

Share this post


Link to post
Share on other sites

Firestorm's script editor at least knows all the reserved words and all the LSL calls.

Share this post


Link to post
Share on other sites
2 hours ago, animats said:

Firestorm's script editor at least knows all the reserved words and all the LSL calls.

There are also many offline text editors for various operating systems that know LSL, Pastebin also knows LSL, and I know I have come across forums that are LSL-aware.
The SL Wiki, as well as the OpenSim wiki, know how to handle LSL and many other online services and offline software can deal with LSL. So why not the SL forum? Surely it should be possible to take a copy of one of the default highlighting definition files, modify it to highlight LSL and deploy it. 

(With "knowing LSL" I mean, of course, that it has syntax highlighting for LSL.)

Share this post


Link to post
Share on other sites
6 hours ago, animats said:

Firestorm's script editor at least knows all the reserved words and all the LSL calls.

:facepalm:

that's because Linden Lab ships the stock viewer with a script editor that has syntax highlighting.

qFICB1M.png

  • Like 5

Share this post


Link to post
Share on other sites

Yes, it would be really nice if pasting code over in the script forums applied the same sort of highlighting that the stock viewer does.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...