Difference between revisions of "User:Kuraiko Yoshikawa/sandbox/LSL Goodies/gedit"
m |
m (spelling checked (on request)) |
||
Line 14: | Line 14: | ||
<div style="background-color: #cfc0e0; font-size: 1.2em; font-weight: bold; border-bottom: black 1px dashed">For gtksourceview2.0</div> | <div style="background-color: #cfc0e0; font-size: 1.2em; font-weight: bold; border-bottom: black 1px dashed">For gtksourceview2.0</div> | ||
<div style="padding: 10px 10px 10px 10px;"> | <div style="padding: 10px 10px 10px 10px;"> | ||
I | I made a new lsl.lang file for gtksourceview2.0 which you can find [http://zeitenwerk.de/sandbox/lsl.lang.tar.gz here]<br> | ||
<div style="color: #7460c0; background: #d9d9d9; border: #132f78 dashed 1px; padding: 10px 10px 10px 10px; width: 650px;"> | <div style="color: #7460c0; background: #d9d9d9; border: #132f78 dashed 1px; padding: 10px 10px 10px 10px; width: 650px;"> | ||
Line 31: | Line 31: | ||
<div style="background-color: #cfc0e0; font-size: 1.2em; font-weight: bold; border-bottom: black 1px dashed">For gtksourceview1.0</div> | <div style="background-color: #cfc0e0; font-size: 1.2em; font-weight: bold; border-bottom: black 1px dashed">For gtksourceview1.0</div> | ||
<div style="padding: 10px 10px 10px 10px;"> | <div style="padding: 10px 10px 10px 10px;"> | ||
This is | This is an older lsl.lang file orginaly created by Nargus Asturias via the [http://forums.secondlife.com/showthread.php?p=1134163 Scripting Tips forum] updated by [http://adammarker.org/shill/ adammarker.org/shill/] and me ^.~<br> | ||
<div style="color: #7460c0; background: #d9d9d9; border: #132f78 dashed 1px; padding: 10px 10px 10px 10px; width: 650px; margin-bottom: 10px;"> | <div style="color: #7460c0; background: #d9d9d9; border: #132f78 dashed 1px; padding: 10px 10px 10px 10px; width: 650px; margin-bottom: 10px;"> | ||
To install, just extract "lsl.lang" to: [Gnome Directory]/gtksourceview-1.0/language-specs<br> | To install, just extract "lsl.lang" to: [Gnome Directory]/gtksourceview-1.0/language-specs<br> | ||
It is for me: /usr/share/gtksourceview-1.0/language-specs<br> | It is for me: /usr/share/gtksourceview-1.0/language-specs<br> | ||
and restart gedit | and restart gedit. | ||
</div> | </div> | ||
</div> | </div> | ||
Line 46: | Line 46: | ||
<div style="color: #7460c0; background: #d9d9d9; border: #132f78 dashed 1px; padding: 10px 10px 10px 10px; width: 650px;"> | <div style="color: #7460c0; background: #d9d9d9; border: #132f78 dashed 1px; padding: 10px 10px 10px 10px; width: 650px;"> | ||
Download lslint for Linux from [http://w-hat.com/lslint/ w-hat] or via [http://w-hat.com/lslint/release/linux/lslint.bz2 this direct link].<br> | |||
Extract lslint anywhere and make it executable (chmod 750 lslint or right click on the file properties/permissions).<br><br> | |||
Now open gedit click edit/preferences/plugins and activate "external tools"<br> | Now open gedit click edit/preferences/plugins and activate "external tools".<br> | ||
Select "configure plugin".<br> | |||
In the new window click ''new'' and name it like LSLint or "LSL Syntax".<br><br> | |||
Insert in the commands text area now:<br> | |||
<div style="border: black dashed 1px; width: 450px; padding: 10px 10px 10px 10px; background: #e5e5e5;"> | <div style="border: black dashed 1px; width: 450px; padding: 10px 10px 10px 10px; background: #e5e5e5;"> | ||
Line 66: | Line 66: | ||
Applicability: All documents<br> | Applicability: All documents<br> | ||
<br> | <br> | ||
Now click ''close'' ^.~<br> | |||
<br> | <br> | ||
Open a new document insert a LSL script and save it (you must | Open a new document, insert a LSL script and save it (you must always save before checking the syntax. Otherwise lslint will produce an error).<br> | ||
Click ''Tools'' and select "''LSLint''" or however you named it. | |||
</div> | </div> | ||
<div style="width: 400px; height: 270px; margin-top: 10px;"> | <div style="width: 400px; height: 270px; margin-top: 10px;"> | ||
Line 80: | Line 80: | ||
[[Image:Gedit lsl theme.jpg]] | [[Image:Gedit lsl theme.jpg]] | ||
<div style="color: #7460c0; background: #d9d9d9; border: #132f78 dashed 1px; padding: 10px 10px 10px 10px; width: 650px;"> | <div style="color: #7460c0; background: #d9d9d9; border: #132f78 dashed 1px; padding: 10px 10px 10px 10px; width: 650px;"> | ||
Download [http://zeitenwerk.de/sandbox/lsl_editor.xml.tar.gz lsl_editor.xml] and extract it anywhere<br> | Download [http://zeitenwerk.de/sandbox/lsl_editor.xml.tar.gz lsl_editor.xml] and extract it anywhere.<br> | ||
Open gedit select Edit/Preferences/Font&Colors, click ''Add'' and add the lsl_editor.xml file.<br> | |||
Select ''LSL Editor'' in the Color Schemes list und close the ''preferences'' window. | |||
</div> | </div> | ||
<br> | <br> | ||
[[User:Kuraiko Yoshikawa|Kuraiko Yoshikawa]] 15:00, 13 May 2008 (PDT) | [[User:Kuraiko Yoshikawa|Kuraiko Yoshikawa]] 15:00, 13 May 2008 (PDT) | ||
</div> | </div> |
Revision as of 15:40, 13 May 2008
gedit as LSL offline Editor
LSL Syntax Highlighting
I made a new lsl.lang file for gtksourceview2.0 which you can find here
To install, just extract "lsl.lang" to: [Gnome Directory]/gtksourceview-2.0/language-specs
It is for me: /usr/share/gtksourceview-2.0/language-specs
and restart gedit
This is an older lsl.lang file orginaly created by Nargus Asturias via the Scripting Tips forum updated by adammarker.org/shill/ and me ^.~
To install, just extract "lsl.lang" to: [Gnome Directory]/gtksourceview-1.0/language-specs
It is for me: /usr/share/gtksourceview-1.0/language-specs
and restart gedit.
Syntax Check
A simple syntax checker for gedit based on lslint
Download lslint for Linux from w-hat or via this direct link.
Extract lslint anywhere and make it executable (chmod 750 lslint or right click on the file properties/permissions).
Now open gedit click edit/preferences/plugins and activate "external tools".
Select "configure plugin".
In the new window click new and name it like LSLint or "LSL Syntax".
Insert in the commands text area now:
#!/bin/sh
[path to lslint]/lslint $GEDIT_CURRENT_DOCUMENT_NAME
for me it is: ~/lslint $GEDIT_CURRENT_DOCUMENT_NAME (home)
Select for:
Input: Nothing
Output: Display in bottom pane
Applicability: All documents
Now click close ^.~
Open a new document, insert a LSL script and save it (you must always save before checking the syntax. Otherwise lslint will produce an error).
Click Tools and select "LSLint" or however you named it.
gedit Color Theme like InWorld Editor (old style)
Download lsl_editor.xml and extract it anywhere.
Open gedit select Edit/Preferences/Font&Colors, click Add and add the lsl_editor.xml file.
Select LSL Editor in the Color Schemes list und close the preferences window.
Kuraiko Yoshikawa 15:00, 13 May 2008 (PDT)