tomaz / appledoc

Objective-c code Apple style documentation set generator.
http://gentlebytes.com
4.19k stars 644 forks source link

Keep tabs in code blocks #137

Open grigorye opened 13 years ago

grigorye commented 13 years ago

Here's my story: I would like to highlight tabs in code blocks, for documentation purposes (I'm documenting coding style). But unfortunately there's nothing to highlight - the tabs are removed during html generation. :-)

Btw, I accomplish highlighting via highlight.js (http://softwaremaniacs.org/soft/highlight/en/), that itself might be of interest for integration into appledoc (it supports Objective-C and integration is just a matter of referencing .css and .js from .html), though it confronts "no highlighting for code" in Apple documentation.

tomaz commented 13 years ago

Removal of tabs is something that happens inside Markdown processor, although doable, it's "hidden" in low-level third-party C code. Might be simpler to just post-process spaces to tabs after converting to html by searching for all code/pre blocks. I'll keep this as a feature request.