Difference between revisions of "User:Kuraiko Yoshikawa/sandbox/LSL Goodies/gedit"
(New page: {{Multi-lang}} <div>__TOC__</div> ==gedit as LSL offline Editor== <div style="background-color: #e8dcfb; min-width: 700px;"> <div style="padding: 0.5em"> [http://www.gnome.org/projects/ge...) |
m |
||
Line 11: | Line 11: | ||
==LSL Syntax Highlighting== | ==LSL Syntax Highlighting== | ||
<div id="box" style="background-color: #e8dcfb | <div id="box" style="background-color: #e8dcfb; min-width: 700px;"> | ||
<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;"> | |||
I have create a new lsl.lang file for gtksourceview2.0 you can find it [http://zeitenwerk.de/sandbox/lsl.lang.tar.gz here]<br> | I have create a new lsl.lang file for gtksourceview2.0 you can find it [http://zeitenwerk.de/sandbox/lsl.lang.tar.gz here]<br> | ||
Line 24: | Line 24: | ||
<div style="border: gray solid 1px; width: 410px; height: 276px; margin: 10px 10px 10px"> | <div style="border: gray solid 1px; width: 410px; height: 276px; margin: 10px 10px 10px"> | ||
[[Image:Gedit lsl highlight.jpg|center]] | [[Image:Gedit lsl highlight.jpg|center]] | ||
</div> | |||
</div> | </div> | ||
</div> | </div> | ||
<div id="box" style="background-color: #e8dcfb | <div id="box" style="background-color: #e8dcfb;"> | ||
<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;"> | |||
This is a older lsl.lang file orginal 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> | This is a older lsl.lang file orginal 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> | ||
Line 35: | Line 37: | ||
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> | </div> |
Revision as of 14:23, 13 May 2008
gedit as LSL offline Editor
LSL Syntax Highlighting
I have create a new lsl.lang file for gtksourceview2.0 you can find it 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 a older lsl.lang file orginal 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 direct link
extract lslint anywhere and make it execute (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 give him a name 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 ever save bevor check the syntax otherwise lslint have 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)