Thomas Thomassen

Results 573 comments of Thomas Thomassen

So, I already had a custom yard plugin with a custom template. And I tried adding it to `templates/default/layout/html/setup.rb` ```ruby def html_syntax_highlight_cpp(source) formatter = Rouge::Formatters::HTML.new lexer = Rouge::Lexers::Cpp.new formatter.format(lexer.lex(source)) end...

> YARD::Templates::Helpers::HtmlHelper is the module that houses all the syntax highlighting methods, and would be the generic way to support such a plugin. So a plugin would open that namespace...

Thank you for the insights. And format is only extracted via `!!!LANGNAME` notation, not via Markdown code block notation: ```c++ // ... ``` ?

Thanks! I don't know why I didn't see it working before, but now I do. I also tried out some of the other plugins, but none worked properly for my...

hm... I'm only seeing the `!!!LANG` syntax working. I inspected the calls to the code extracter and `detect_lang_in_codeblock_attributes` is getting passed two empty strings. The HTML that YARD parses is...

Hm... Our code docs are using Rdoc, because of legacy reasons. But we have markdown pages included in the docs for additional info. Is it possible to set which markdown...

Ah, I checked the issues list first, but I didn't check the open PRs. I see now that there is #1351 that also addresses this.

I didn't check the guide template. That is a template I haven't noticed before. But for the default template it seemed to work well. I tested the front page (README)...

Here are builds of the YARD docs and the YARD guide using a build from this PR branch. - [doc.zip](https://github.com/lsegal/yard/files/5474151/doc.zip) - [doc_guide.zip](https://github.com/lsegal/yard/files/5474153/doc_guide.zip)

Btw, I saw warning from YARD when building the guide, not sure if that's related to how in invoked the build? ``` C:\Users\Thomas\SourceTree\yard>ruby bin\yard --yardopts .yardopts_guide [warn]: Unknown tag @yard.tag...