Re: [Rest2web-develop] txt instead of rst?
Brought to you by:
mjfoord
From: Michael F. <fuz...@vo...> - 2006-08-12 20:21:09
|
martin f krafft wrote: > also sprach Michael Foord <fuz...@vo...> [2006.08.12.0034 +0100]: > >> http://docutils.sourceforge.net/FAQ.html#what-s-the-standard-filename-extension-for-a-restructuredtext-file >> > > /me hides > :-) > >> [snip..] >> How would you like it configurable. Would you like it to just read >> '.rst' files as well, preferring (but not requiring) index.txt >> over index.rst ? >> >> What should it do with the filenames if it finds 'xyz.txt' and >> 'xyz.rst' in the same directory ? >> > > I don't have good answers to this. Generally I'd say .rst over .txt, > but now that I've seen the FAQ. > > I've committed a patch to vim upstream to active rst-style syntax > highlighting if /^restindex$/ is found in the first five lines of > a file. This should make it extension-agnostic. > In this case I will leave rest2web as it is, at least in this respect. On the other hand, if you wanted to make this change yourself it should be quite easy. Almost all the code that would need to be changed is in the "rest2web.restprocessor.walk" function. Fuzzyman http://www.voidspace.org.uk/python/index.shtml |