We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
is it possible to get html syntax highlighting in a code block without example? Like:
/*doc
title: Title name: name category: category
`<div class="html-example"></div>`
*/
The text was updated successfully, but these errors were encountered:
@philipisik yes you just need to write a custom renderer or only allow your template to output the code example without the preview.
here's a sass code_example_renderer that I've written.
Hologram::CodeExampleRenderer::Factory.define 'sass' do example_template 'sass_example_template' table_template 'sass_table_template' lexer { Rouge::Lexer.find('sass') } end
and then in the templates dir I just provide the sass_example_template and the sass_table_template
sass_example_template
sass_table_template
Sorry, something went wrong.
No branches or pull requests
Hi,
is it possible to get html syntax highlighting in a code block without example? Like:
/*doc
title: Title
name: name
category: category
*/
The text was updated successfully, but these errors were encountered: