문제

I am using docco as a tool for creating coffeescript documentation.

By default, every comment I make in coffeescript source is treated as documentation and moved to the left (explainatory) column. The problem is, in my source there are some lines of code commented out, left as alternate options, which I want to remain in the right (code) column.

Is there a way to tell docco- "do not touch that, leave this like it is a normal code"? "#!" or "#ignore" maybe? Thanks in advance.

도움이 되었습니까?

해결책

Have you tried it? It will ignore #! hashbang lines.

Ignore hashbangs and interpolations...

        l.commentFilter = /(^#![/]|^\s*#\{)/
      languages
    languages = buildMatchers languages

From the source, line 277 https://github.com/jashkenas/docco/blob/master/docco.litcoffee

If nothing else, you should be able to edit the source to add whatever opt out you would like there.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top