Adam Kaupas
Registered User
Join date: 20 Aug 2006
Posts: 24
|
09-11-2006 10:29
Hey all I'm running KDE, and thus use Kate for most text editing - and seeing as copy and paste should be out wednesday (! woo !), I'm wondering if anyone has a syntax file for Kate for LSL. Reading google's cache of the wiki, SildurRandall apparently made a file, but I haven't heard back from him on it. I'll happily offer hosting if he sees this, but otherwise - does anyone else here have a copy? I'd really like to be able to start seeing LSL in Kate  Thanks for any help.
|
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
|
Kate syntax file generator
09-11-2006 11:32
Never need another Kate Syntax File download with Dale Glass`s Kate syntax file generator. I have a custom-written auto-update shell script that embeds calls to Dale`s system, setting me up with updated syntax files automaticaly when I download-and-install a new release of Second Life. All I have to do to install the latest version is type ./slinstall [[[[Major] Minor] Release] Build] ...where [] meas "optional" as opposed to "enclose in brackets". I`ve been thinking of posting it here. How much interest would there be?
|
Adam Kaupas
Registered User
Join date: 20 Aug 2006
Posts: 24
|
09-11-2006 11:58
If you wouldn't mind, I'd love to have a copy, and I could host it up if you like. Your link is broken, by the way.
|
Adam Kaupas
Registered User
Join date: 20 Aug 2006
Posts: 24
|
09-11-2006 12:37
Ok, I found your link. The highlighting seems to work, but out of interest is there any way to get the highlighting on events like listen, state_entry etc?
Thanks
|
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
|
Kate syntax file generator
09-11-2006 12:58
From: Adam Kaupas If you wouldn't mind, I'd love to have a copy, and I could host it up if you like. ./slinstall oldver=`cat ~/.SLVersion.txt`;echo $oldver function getWord () { eval echo echo $1` } Major=`eval getWord 2 $oldver`; echo Old Major: $Major Minor=`eval getWord 3 $oldver`; echo Old Minor: $Minor Rel=`eval getWord 4 $oldver` ; echo Old Rel: $Rel Build=`eval getWord 5 $oldver`; echo Old Build: $Build if [ "$4" != "" ]; then Major=$1 Minor=$2 Rel=$3 Build=$4 elif [ "$3" != "" ]; then Minor=$1 Rel=$2 Build=$3 elif [ "$2" != "" ]; then Rel=$1 Build=$2 elif [ "$1" != "" ]; then Build=$1 fi version=$Major"_"$Minor"_"$Rel"_"$Build; echo New version: $version echo >~/.SLVersion.txt $Major $Minor $Rel $Build wget -nc -c -P ~/Downloads/ http://secondlife.com/downloads/viewer/SecondLife_$version.tar.bz2 && tar -xvvf ~/Downloads/SecondLife_$version.tar.bz2 cd ~/Scripts ./gensyntax.pl ~/SecondLife_$version/ < lsl-pattern.xml > ~/.kde/share/apps/katepart/syntax/lsl.xml ./slrunoldver=`cat ~/.SLVersion.txt`;echo $oldver function getWord () { eval echo $`echo $1` } Major=`eval getWord 2 $oldver`; echo Old Major: $Major Minor=`eval getWord 3 $oldver`; echo Old Minor: $Minor Rel=`eval getWord 4 $oldver` ; echo Old Rel: $Rel Build=`eval getWord 5 $oldver`; echo Old Build: $Build if [ "$4" != "" ]; then Major=$1 Minor=$2 Rel=$3 Build=$4 elif [ "$3" != "" ]; then Minor=$1 Rel=$2 Build=$3 elif [ "$2" != "" ]; then Rel=$1 Build=$2 elif [ "$1" != "" ]; then Build=$1 fi version=$Major"_"$Minor"_"$Rel"_"$Build; echo New version: $version echo >~/.SLVersion.txt $Major $Minor $Rel $Build cd ~/SecondLife_$version fname=$(date -d "$(stat -c %y SecondLife/Llauren_Mandelbrot/screen_last.bmp)" +%F-%H-%M) fname="$HOME/Pictures/Second Life/screen_last$fname.bmp" echo $fname if [ -e "$fname" ]; then echo "Exists."; else echo "Creating."; cp SecondLife/Llauren_Mandelbrot/screen_last.bmp "$fname" fi; ./secondlife cd ~/SecondLife_$version fname=$(date -d "$(stat -c %y SecondLife/Llauren_Mandelbrot/screen_last.bmp)" +%F-%H-%M) fname="$HOME/Pictures/Second Life/screen_last$fname.bmp" echo $fname if [ -e "$fname" ]; then echo "Exists."; else echo "Creating."; cp SecondLife/Llauren_Mandelbrot/screen_last.bmp "$fname" fi; Please note that the first time this is run that the script will fail to read the old version information, and will complain, but will continue running. This is not a problem, if you specify the fill version number the first time you use it. Alternatively: ~/.SLVersion.txti686_1 12 0 51742 Please also note that this installs into your Home directory, and installs new versions alongisde existing versions. This can fill your Home directory rather quickly, if you`re not careful.:) Aditionally, the Run script collects the screen_last.bmp files into one of the directories my KUbuntu desktop is configured to draw random backdrop images from. This explains why the Run script is longer than the Install script. Yes, I know I have the Run script checking twice. This is deliberate, if generally useless.From: Adam Kaupas Your link is broken, by the way. Try this: Kate syntax file generator.
|
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
|
Oops!
09-11-2006 13:01
I forgot to mention that I installed Dale`s scripts into ~/Scripts/ 
|