www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - emacs ddoc-mode?

reply Andrei Alexandrescu <SeeWebsiteForEmail erdani.org> writes:
Hello,


Having a ddoc mode for emacs would make documentation writing a lot more 
enjoyable. Is there anyone who's versed in defining emacs modes?

Ddoc files have a simple structure: "$(name" introduces a level of 
indentation (e.g. 2 spaces) and gets highlighted, ")" deindents, and at 
the end there's a macros section starting with "Macros:" on its own line 
followed by pairs of the form NAME=string.


Andrei
Feb 07 2013
next sibling parent =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
 Having a ddoc mode for emacs would make documentation writing a
I hacked together something here https://github.com/nordlow/elisp/blob/master/mine/ddoc-mode.el to get us started. I'll add a function highlighter later on.
Jun 03 2014
prev sibling parent =?UTF-8?B?Ik5vcmRsw7Z3Ig==?= <per.nordlow gmail.com> writes:
 Having a ddoc mode for emacs would make documentation writing a
I guess we want DDoc highlighting in d-mode aswell. I'll look into this later on.
Jun 03 2014