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

Teach SyntaxHighlightFilter about default highlights #81

Merged
merged 2 commits into from
Aug 30, 2013

Conversation

jbarnette
Copy link
Contributor

This allows any code blocks without a language specified (indented blocks or simple fenced blocks) to be highlighted as a default language. Specify a :highlight context key to provide the default.

For extra fun, this adds an additional class to the .highlight div specifying the highlighted language.

This allows any code blocks without a language specified (indented
blocks or fences with no language) to be highlighted with a default.

For extra fun, add an additional class to the "highlight" div
specifying the highlighted language.
@jbarnette
Copy link
Contributor Author

@jch I want to use this to support simple literate-style Markdown documents for multiple languages.

@jch
Copy link
Contributor

jch commented Aug 30, 2013

Sounds good to me. ❤️ literate programming.

jch added a commit that referenced this pull request Aug 30, 2013
Teach SyntaxHighlightFilter about default highlights
@jch jch merged commit cfde16f into gjtorikian:master Aug 30, 2013
@jbarnette
Copy link
Contributor Author

@jch 🤘 Finna experiment a bit, I may beg for a v0.3.0 at some point soon.

@jbarnette jbarnette deleted the default-highlight branch August 30, 2013 23:51
@jch
Copy link
Contributor

jch commented Aug 30, 2013

Ah neato. I'll hold off on releasing then.

@jbarnette
Copy link
Contributor Author

@jch A release now would be awesome actually. ❤️

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

Successfully merging this pull request may close these issues.

2 participants