Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Notepad++ - Alternative LSL Editor (language file included in post)

Samson Havercamp
Registered User
Join date: 20 Apr 2006
Posts: 8
05-12-2006 08:56
I've used the wiki to find some alternative LSL editors, but a lot of those listed have somewhat out of date definition files for LSL. I'll throw out the suggestion of using Notepad++, which IMHO is a great IDE that supports a bunch of languages. I've setup a definition file for LSL that *should* be current to SL 1.8, and hopefully soon I'll get another version up that's for 1.9. In the meantime, you can get Notepad++ here:

http://notepad-plus.sourceforge.net/uk/site.htm

After installing, unzip the file attached to this post and place the XML file in the Notepad++ home directory (Program Files\Notepad++). Make sure you are viewing hidden files as you'll need to overwrite the default userdefine.xml file. If you don't find it in the apps directory, check for the file in your user application data folder (documents and settings\<username>\Application Data\Notepad++).

Open Notepad++ and open an LSL file. Then from the language menu select "LSL 1.8"

Hope this helps.
Charles Granville
Registered User
Join date: 18 Mar 2006
Posts: 33
05-12-2006 09:46
Great - I was actually looking for an LSL language file for Notepad++ the other day. Thanks.
Russell Hansen
Texi pets are here!
Join date: 11 Apr 2006
Posts: 107
05-13-2006 21:58
Cool, thanks for that. I haven't seen notepad++ and hadn't tried any of the other external editors yet. I'll download it and check it out. I'd love to see it updated for 1.9.1 when it's out.
Purrts Trumbo
Registered User
Join date: 7 Sep 2005
Posts: 22
05-15-2006 13:11
Thanks Samson! That will be a big help. :)
Jim Bunderfeld
The Coder
Join date: 1 Mar 2004
Posts: 161
05-15-2006 15:01
Make sure to add this in the alternative editor page on the Script WiKi
Draco18s Majestic
Registered User
Join date: 19 Sep 2005
Posts: 2,744
05-17-2006 18:21
With the most current version of Notepad++, I can't find the userdefine.xml in either location (install directory or the Application Data) and placing the userdefine.xml file in either location does not give me a LSL choice in the lanuage menu after restarting the program.

What am I doing wrong?
Samson Havercamp
Registered User
Join date: 20 Apr 2006
Posts: 8
cant find "userdefine.xml"
05-28-2006 19:25
From: Draco18s Majestic
With the most current version of Notepad++, I can't find the userdefine.xml in either location (install directory or the Application Data) and placing the userdefine.xml file in either location does not give me a LSL choice in the lanuage menu after restarting the program.

What am I doing wrong?


Check to make sure that you are viewing all files in the folder, *including* hidden files. The userdefine.xml is a hidden file in Windows.

Additionally - I'm currently working to update this to 1.10. I will post the new file and add it to the wiki when that's finished.
Draco18s Majestic
Registered User
Join date: 19 Sep 2005
Posts: 2,744
05-28-2006 21:20
Yes, I had hidden files turned on (I checked, as I believe I have it set default, as I venture into several hidden folders frequently). It was not there, and adding it didn't help.
Tom Lulu
Registered User
Join date: 12 May 2005
Posts: 1
05-31-2006 08:54
I made this .API file to go along with your language definition
It enables you to use the auto completion feature of notepad++ (type the start of the function and press ctrl+space)

Just unzip it to the folder where you installed notepad++ (f:\program files\notepad++ for me)

be sure to keep the directory structure when extracting, or just put the file in %NOTEPADDIR%\plugins\APIs
Seronis Zagato
Verified Resident
Join date: 30 Aug 2005
Posts: 454
05-31-2006 18:16
Use GVIM 6.3 and 6.4 currently but will try this out too. Ty !
Samson Havercamp
Registered User
Join date: 20 Apr 2006
Posts: 8
RE: can't find userdefinelang.xml
06-01-2006 17:11
From: Draco18s Majestic
Yes, I had hidden files turned on (I checked, as I believe I have it set default, as I venture into several hidden folders frequently). It was not there, and adding it didn't help.


One other thing - you won't have a userdefinelang.xml file until you've actually attempted to create a user-defined language (at least it appears to function in this manner with the latest version of notepad++). If you have a Notepad++ file in your \Documents and Settings\<username>\Application Data\ folder, just drop the XML file into that directory, and Notepad++ should auto-detect it.

If that doesn't work, create a user-defined language from within the program, which will generate the file. Then just overwrite the file with the one provided here.
Samson Havercamp
Registered User
Join date: 20 Apr 2006
Posts: 8
Notepad++ Syntax file for LSL 1.10.0
06-01-2006 17:24
Attached you'll find the updated language file for LSL 1.10.0 for Notepad++. This zip file also includes the API provided by Tom Lulu (thanks Tom!). The instructions for installing the file are at the beginning of this thread. Please note that if you follow the instructions, the old language file (named LSL 1.8) will no longer be an available option. I doubt that to be an issue since this update includes everything from 1.8 and updates it for 1.10.0.
Alec Ferguson
Registered User
Join date: 20 Jun 2006
Posts: 1
06-21-2006 03:55
Is there anywhere else I can download this it seems to be corrupt
Tossican Itoku
Registered User
Join date: 18 Jan 2006
Posts: 9
06-21-2006 08:15
From: Alec Ferguson
Is there anywhere else I can download this it seems to be corrupt


I second that!! Please fix, or include a new source?

Thanks in advance! -- Tossi
MrRight David
Registered User
Join date: 5 Oct 2005
Posts: 8
06-23-2006 14:24
From: Alec Ferguson
Is there anywhere else I can download this it seems to be corrupt



I'll toss in a 3rd vote... Need a non-corrupted .zip file please. ;)
Samson Havercamp
Registered User
Join date: 20 Apr 2006
Posts: 8
(hopefully) non-corrupted zip file for LSL 1.10.0
06-29-2006 17:04
I'll try to add a revision for the newest version soon, but for now try this zip file.

:D
Erik Goff
Registered User
Join date: 26 Mar 2006
Posts: 4
It Works :)
08-09-2006 16:02
Thank You !

The coolest scripting solution since LSL itself.

Cheers
Tossican Itoku
Registered User
Join date: 18 Jan 2006
Posts: 9
Auto language?
09-06-2006 20:33
First off, I'd like to say this def file is wonderful! I use notepadd++ now nearly every day! I've found it, and this language file invaluable! And I look forward to the next update!

That being said... Is there any way to define what scripts are LSL? I've made it a practice to save my scripts with a .lsl extension, but I can't seem to find any way to tell notepadd++ that these files are LSL scripts.... There are times when I load up 15 or more scripts at a time, and have to tell each one of them they are LSL scripts rather then normal text, which is kind of annnoying ... any suggestions?

Thanx!!

-- Tossi
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
09-06-2006 21:11
Many SL scripters use SciTE, available at: http://sdfjkl.org/secondlife/scite/

Things I like about it... it can run as a portable app on a USB drive, and I was able to edit user settings to set the colors to black background, gray text, and properly shaded LSL functions and events (much better on the eyes during late-night script sessions).

For other options, see the LSL wiki page here: http://secondlife.com/badgeo/wakka.php?wakka=AlternativeEditors
Ron Overdrive
Registered User
Join date: 10 Jul 2005
Posts: 1,002
09-06-2006 21:29
From: DoteDote Edison
Many SL scripters use SciTE, available at: http://sdfjkl.org/secondlife/scite/

Things I like about it... it can run as a portable app on a USB drive, and I was able to edit user settings to set the colors to black background, gray text, and properly shaded LSL functions and events (much better on the eyes during late-night script sessions).

For other options, see the LSL wiki page here: http://secondlife.com/badgeo/wakka.php?wakka=AlternativeEditors


You're able to do the same thing with NotePad++. I have it running on my 1 gig USB stick along with w-hat's lsl precompiler.
Russell Hansen
Texi pets are here!
Join date: 11 Apr 2006
Posts: 107
09-07-2006 01:25
Yep, me too.

Can we expect an update for 1.12.1? I'm still using 1.10 and it's OK as is, but I like to stay updated.
_____________________
Russell Hansen - Texi Pet Creator
Texi Pets, your SL Companions and Personal Assistants
http://texipets.com
Newgate Ludd
Out of Chesse Error
Join date: 8 Apr 2005
Posts: 2,103
LSL Extension
09-07-2006 06:52
From: Tossican Itoku
First off, I'd like to say this def file is wonderful! I use notepadd++ now nearly every day! I've found it, and this language file invaluable! And I look forward to the next update!

That being said... Is there any way to define what scripts are LSL? I've made it a practice to save my scripts with a .lsl extension, but I can't seem to find any way to tell notepadd++ that these files are LSL scripts.... There are times when I load up 15 or more scripts at a time, and have to tell each one of them they are LSL scripts rather then normal text, which is kind of annnoying ... any suggestions?

Thanx!!

-- Tossi



Select the User Define language panel and select LSL 1.10.0 as theUser Derfined langauge. then in the Ext box type lsl
Tossican Itoku
Registered User
Join date: 18 Jan 2006
Posts: 9
09-08-2006 19:18
From: Newgate Ludd
Select the User Define language panel and select LSL 1.10.0 as theUser Derfined langauge. then in the Ext box type lsl


Ahh!! There it is!.. Thanks tons Newgate!!

-- Tossi
Samson Havercamp
Registered User
Join date: 20 Apr 2006
Posts: 8
09-08-2006 19:39
From: Russell Hansen
Yep, me too.

Can we expect an update for 1.12.1? I'm still using 1.10 and it's OK as is, but I like to stay updated.


Yes, I've begun working on updating the definition files for the next version, and it will be along shortly.

Tossi - it looks like Newgate answered your question, so I'm glad to see that you got the answer quickly.
Daichi Delcon
Registered User
Join date: 30 Nov 2006
Posts: 2
12-09-2006 12:12
I can't find "userdefinelang.xml" in anyu folder and i have searched, none!
maybe it's beacuse im usine the latest verision 3.9 .
can someone help me?
1 2