Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!!!lang code blocks should set the lang in <pre>'s class. #478

Closed
dominikh opened this issue Jan 30, 2012 · 2 comments
Closed

!!!lang code blocks should set the lang in <pre>'s class. #478

dominikh opened this issue Jan 30, 2012 · 2 comments
Labels
Milestone

Comments

@dominikh
Copy link
Contributor

Right now, there is no way to tell which language a code block contains after it has been processed by YARD. This makes it hard to postprocess the output.

Methods in YARD::Templates::Helpers::HtmlHelper that might needs adjustment:

  • #html_syntax_highlight
  • #htmlify
@lsegal lsegal closed this as completed in 8292be4 Jan 31, 2012
lsegal added a commit that referenced this issue Jan 31, 2012
Backports #478, #479, referencing #467

Conflicts:

	lib/yard/templates/helpers/html_helper.rb
@FranklinYu
Copy link

What is this about? Is this about hinting about the syntax of a code block in RDoc? So

!!!bash

    apt-get update

in RDoc is equivalent to

```bash
apt-get update
```

in Markdown?

@lsegal
Copy link
Owner

lsegal commented Sep 18, 2016

@FranklinYu Indeed, except the bang needs to be indented at the same level as your markup:

    !!!bash
    apt-get update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants