Skip to content

Commit

Permalink
Use language extension instead of language name for prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
zyedidia committed Mar 1, 2016
1 parent 7080f3f commit 80e7f26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lit/weaver.lit
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ to use that, otherwise, the pretty printer will try to figure out how to syntax
on its own -- and it's pretty good at that.

--- Write the actual code
if (block.codeType.split().length > 0) {
output ~= "<pre class=\"prettyprint lang-" ~ block.codeType.split()[0] ~ "\">\n";
if (block.codeType.split().length > 1) {
output ~= "<pre class=\"prettyprint lang-" ~ block.codeType.split()[1][1..$] ~ "\">\n";
} else {
output ~= "<pre class=\"prettyprint\">\n";
}
Expand Down

0 comments on commit 80e7f26

Please sign in to comment.