help with docbook in emacs using psgml

Jack Ostroff ostroffjh at aya.yale.edu
Sat Mar 30 00:03:08 GMT 2019


> Hello all,
> 
> I had been using nxml mode in emacs (currently using 26.1) and was  
> happy with it, except it generally said "invalid syntax" for most  
> docbook files (which had no problems or errors with checkXML or  
> meinproc5.  Today I tried to switch to psgml, but am unable to get  
> syntax highlighting.   I have sgml-set-face and  
> sgml-auto-activate-dtd both set to t, and sgml-markup-faces seems OK  
> with what look like appropriate font-lock items.   Is there a useful  
> set of instructions or tutorial?  I have hunted but not yet found  
> anything helpful.  I would really prefer colored syntax highlighting,  
> but it's not even clear to me if the font-lock faces will do that.
Well, the "invalid syntax" was because it was only a single docbook  
file, missing the context provided when it was called from  
index.docbook, so that won't change with a different emacs mode.  I'd  
love to find a way to deal with it, but I don't suspect there is any  
easy answer.  However, I'm still interested in getting the colored  
syntax highlighting, unless there is some thought that psgml doesn't  
have any other benefits over nxml.
> 
> Thanks for any suggestions.
> 
> Jack


More information about the kde-doc-english mailing list