The very unofficial .emacs home wsmake.el
emacs
Sections
home
what is this all about ?
customization basics
special topics
local dotfiles
dotfiles on the web
new and updated pages
useful sites and pages
search locally
EMacro
OS/2 Emacs
Ingo Koch
IngoKoch.emacs
.emacs-gnu-all
.emacs-gnu-win
.mycustom
.vm
javadecomp.el
wsmake.el

IngoKoch.zip
Latest Additions
local files:
John J. Glynn
David Jolley

linked files:


articles:


links:
The Emacs wiki
;; ---------------------------------------------------------------------------
;; Aditions for your Emacs dotfile to get colorized syntactical elments in 
;; wsmake configuration files. 
;; Done by defining a simple generic mode for them.
;; 
;; Wsmake is a free website pre-processor available at www.wsmake.org
;; It includes a parser that handles page ordering, tag substitution, and
;; dependency checking. You can use wsmake with any type of web content, from
;; PHP to XML or even your own computer language.
;;---------------------------------------------------------------------------

;; ---------------------------------------------------------------------------
;; Load font-lock to get syntax hilighting and set it to maximum colors
;; ---------------------------------------------------------------------------
(require 'font-lock)

;; as much colours as possible 
(setq font-lock-maximum-decoration
  '((t         . 3))
)

;; ---------------------------------------------------------------------------
;; Load generic and define a simple generic mode for ws-files
;; The regular expression for the attributes is not yet complete. 
;; If you feel that there is something missing, please add it :)
;; The attributes regexpr is one long string, broken down into separate 
;; lines by using the continuation character \ at the end.
;; Please don't indent the lines or format them otherwise. The regexp 
;; won't work as expected if you add spaces or tabs.
;; ---------------------------------------------------------------------------
(require 'generic)
(define-generic-mode 'wsmake-generic-mode
   ;; comments
   (list ?#)
   ;; sections
   (list 
    "Website"
    "PageGroup"
    "SubTagGroup"
    "PagePart"
    "PageOrder"
    "Page"
    "Theme"
    )
   ;; attributes
   '(
     ("^\\([ \t]*\\)\\(SubTag\\|web_page\\|directory\\|source_dir\\|output_dir\\|part_dir\\|command\\|options\\|depend\\|include\\|include_tagname\\|subtag_format\\|database_format\\|database_filename\\|theme\\|parse\\|depend\\|web_page\\|pagegroup\\|subtaggroup\\|pageorder\\|name\\|filename\\|part\\|data\\|lastmod_tagname\\|time_format\\|subtag_format\\)\\([ \t]+\\|[ \t]*$\\)" 2 'font-lock-variable-name-face)
     )
   ;; extensions
   (list "\\.ws\\'" )
   nil
   "Generic mode for wsmake configuration files.")


All content copyright by the contributors. Website maintained with Emacs , wsmake and html-helper-mode
Emacs community logo by Daniel Lundin Last updated on Sat Jan 22 14:57:06 2005 by Ingo Koch