Re: Gedit Highlighting Scheme

From: wxtofly <wxtofly_at_nyahnyahspammersnyahnyah>
Date: Fri Jan 07 2011 - 12:17:36 MST
I should add two things.
A similar process works on functions.
And , the process, as is, misses some things.  In particular it misses classes, like MapPlot and PlotManager.  It also misses options for some items, like Top Bottom and BottomLeft or Linear, Log, and Irregular.

TJ Olney


On 01/07/2011 10:49 AM, wxtofly wrote:
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


--

TJ's Blanchard Page    My Wx Widget  Ft Ebey (Whidbey) NWS Seattle ASP  
: MAPS/RUC2 | Lo Alt | MM5 Bham Obs Fire Winds Rasp Soundings
Winds Aloft   R♥sp    Visible Satellite  Fcst Discussion   Fraser Valley  Windgrams text
Blanchard Digital | ♥Meteogram ♦UW Satellite   | Loop ♥ Discussion With Images Windcast Blipspots
  Quick Radar NWS Radar 9 Meso-stations   Pressure gradients WA Meso Stations map Time/hght/wind
MesoW GoogleMaps aprs current Personal Wx Stations Wind Map now, sfc winds  |  bl winds


  RASP Regional Atmospheric Soaring Predictions for PNW      || Average BL wind loop Blanchard   
       Surface wind forecast Loops: | Animated Radar   |  | loop Blanchard | loop PNW | loop FtEbey | loop Tiger | loop FraserValley

       Layered by altitude Sea Level to 850mb (approx 5000 ft) looped by time wind forecasts:
Blanchard Pressure Level Loop | Tiger Pressure Level Loop | Fraser Valley Pressure Level Loop
All day hour-by-hour text RUC2/MAPS soundings
These have no graphics and are designed to be printed to take with you to the site.
After sunclipse there will be one run for the next day but it only has MAPS soundings.
  Woodside/Sumas/Bridal     Black Mt     Big Johnson     Stewart same as Blanchard     Ft Ebey     Skagit Valley     Tiger  
Blipsp⊕ts: | Baldy | BJ | Black | BlackLZ | Blanchard | Chelan | Iron | Saddle | Stewart | Tiger | FtEbey | Woodside | Bridal Falls
| Current Rapid Update Soundings for flying sites | Winds aloft Seatac & Vancouver | Visible Satellite zoomed | NWS forecasts |
Abbreviated pages for mobile devices. | Blanchard | Tiger | Ft Ebey | East Side
The Seattle Forecast Discussion "translated" or with maps or original form without maps (available sooner) Learn to read the maps. Soundings Tutorial
Cloud Forecast -- RUC based Meteogram for KBLI Bellingham    |   RUC based Meteogram for CYXX Abbotsford -- Cloud Forecast

TJ Olney Weather: Site Map

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

raspicon16.png llapse1.png fireSky.gif discuss.jpg windgramico.png wbarb3.png
Received on Fri Jan 7 12:17:48 2011

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