|
From: Ollie R. <ol...@ru...> - 2003-10-01 17:02:23
|
Jim Urban wrote: > Has anyone taught jEdit to support editing Apache .conf files? I just put together a mode based on the directive quick reference for version 2. http://httpd.apache.org/docs-2.0/mod/quickreference.html Since it's large (48k), rather than posting it to the list, I've uploaded it here: http://www.rutherfurd.net/jEdit/apacheconf.xml Here's the entry I added to the modes catalog: <MODE NAME="apacheconf" FILE="apacheconf.xml" FILE_NAME_GLOB="*httpd.conf" /> I generated the mode from the quick reference using a Python script, but took a couple small liberties when classifying things. For example, the keywords are included in and outside of directives so they can be colored differently inside and out. Also, comments inside directives are a different color, as I liked that better. I don't know apache config file syntax well, so things may be missing, incorrect, etc... -- corrections or improvements welcome. -Ollie |