Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Turn off syntax highlighting if --no-highlighting is set
  • Loading branch information
Paul Cochrane committed Aug 27, 2015
1 parent 8a9c60d commit 19b56c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion htmlify.pl
Expand Up @@ -71,7 +71,6 @@ (:$no-highlight = False)
my $wsg-categories = Categories.new(categories-table => %wsg-categories-table);
$all-categories.append-subcategories(to-category => "wsg", subcategories => $wsg-categories);

say "no highlight ", $no-highlight;
my $website = Website.new(categories => $all-categories);
$website.syntax-highlighting = False if $no-highlight;
$website.menu-tabs = %menu-tabs;
Expand Down
2 changes: 1 addition & 1 deletion lib/Pod/Htmlify.pm6
Expand Up @@ -187,7 +187,7 @@ class Website is export {

#| convert the POD into html
method p2h($pod) {
my $vim-colour = try {
my $vim-colour = $.syntax-highlighting && try {
require Text::VimColour;
};

Expand Down

0 comments on commit 19b56c7

Please sign in to comment.