Re: Gedit Highlighting Scheme

From: wxtofly <wxtofly_at_nyahnyahspammersnyahnyah>
Date: Fri Jan 07 2011 - 11:49:44 MST
If you run this script it fetches the page that Mary mentioned, and will recreate the list.
jed has the "feature" that keywords of different lengths must be declared separately.
The lines of @@@@ were my trick to be able to sort them by length of word.
TJ Olney


######### cut #####
#!/bin/bash

# get the list
 lynx -dump -nolist -width 300 "http://www.ncl.ucar.edu/Document/Graphics/Resources/list_alpha_res.shtml" \
  |egrep "^   [a-z][a-z]" |sed -e 's/^ *//g'  -e 's/(.*$//g' -e 's/ //g' \
  |sed -e 's/$/@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@/g' |cut -b 1-44  \
  |sed -e 's/\([^@]*\)\(@*$\)/\2\1/g' |tr "@" "1" | sort|  sed -e 's/1//g' |egrep -v 'NCL|_' | uniq >tmpnewres521.ncl

########cut  ######

I then used more scripting to build the jed ncl.sl file.  Then finally had to tweak a few by hand where they didn't work as expected.

The nice thing is you can test the highlighting on tmpnewres521.ncl to see which are not being properly highlighted.


TJ Oney

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jan 7 11:49:50 2011

This archive was generated by hypermail 2.1.8 : Thu Jan 13 2011 - 09:24:21 MST