mapfile .map syntax for gedit text editor

tim chippy2005 at GMAIL.COM
Wed Feb 6 06:49:59 PST 2008


Hello,

I've written a syntax file for Mapserver's mapfile (.map) for the
gedit text editor.

1. To get gnome/gedit to recognise a .map file and give it the correct syntax:
http://geothings.net/thinkwhere/mapserver/map.lang
copy it to /usr/share/mime/packages/ directory then run "sudo
update-mime-database /usr/share/mime"

2. The syntax file:
http://geothings.net/thinkwhere/mapserver/mapserver.xml
/usr/share/gtksourceview-1.0/language-specs (or
gtksourceview-2.0/language-specs for Gutsy)

then restart gedit and open a .map file.

More fuller directions here (with links and screenshot)
http://thinkwhere.wordpress.com/2008/02/06/mapserver-syntax-file-for-gedit/

Many thanks to the other syntax files for vim, textpad and notepad++
that I used to help write it.
Tested on ubuntu Fiesty, let me know if it works, or doesn't.

Thanks,

Tim



More information about the MapServer-users mailing list