Emacs, PSGML a syntax highlighting
Tomáš Vondra
vondra na tesmail.cz
Čtvrtek Únor 22 08:25:22 CET 2001
No jo, ale to mi vubec nefunguje...
> Tohle snad není tak šílené. Stačí přidat do .emacs:
>
> ;; Color highlighting for PSGML
> (make-face 'sgml-comment-face)
> (make-face 'sgml-start-tag-face)
> (make-face 'sgml-end-tag-face)
> (make-face 'sgml-entity-face)
>
> (set-face-foreground 'sgml-comment-face "Gray")
> (set-face-foreground 'sgml-start-tag-face "Blue")
> (set-face-foreground 'sgml-end-tag-face "Blue")
> (set-face-foreground 'sgml-entity-face "Red")
>
> (setq sgml-markup-faces
> '((comment . sgml-comment-face)
> (start-tag . sgml-start-tag-face)
> (end-tag . sgml-end-tag-face)
> (entity . sgml-entity-face)
> (doctype . font-lock-keyword-face)
> (pi . font-lock-reference-face)
> ))
>
> (setq sgml-set-face t)
Další informace o konferenci Linux