Skip to content

Commit 658c25a

Browse files
vipulnswardfxn
authored andcommitted
- Update Syntax Highlighter to version 4.
- Build Syntax Highlighter based on https://github.com/syntaxhighlighter/syntaxhighlighter/wiki/Building and use theme generated by fxn. - This also bundles these brushes in the file itself- ruby,css,xml,sql,javascript,plain. Generation command used: gulp build --compat --brushes=javascript,ruby,xml,sql,plain --theme=/Path/To/RailsSource/rails/guides/assets/stylesheets/syntaxhighlighter/shThemeRailsGuides.css - rm all old js and css files - Moved over how JS configuration is created for Syntax Highlighter - Fixed layout for all imports - Fixes bug with old copy paste, generating wrong space character on webkit https://github.com/syntaxhighlighter/syntaxhighlighter/blob/7caa9632e7fe470d944fc06b4db7d35352ebaa36/src/dom.js#L227 Fixes rails#25655
1 parent 81a16cb commit 658c25a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+24
-5235
lines changed

guides/assets/javascripts/guides.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,3 @@ var guidesIndex = {
5151
window.location = url;
5252
}
5353
};
54-
55-
// Disable autolink inside example code blocks of guides.
56-
$(document).ready(function() {
57-
SyntaxHighlighter.defaults['auto-links'] = false;
58-
SyntaxHighlighter.all();
59-
});

guides/assets/javascripts/syntaxhighlighter.js

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

guides/assets/javascripts/syntaxhighlighter/shBrushAS3.js

Lines changed: 0 additions & 59 deletions
This file was deleted.

guides/assets/javascripts/syntaxhighlighter/shBrushAppleScript.js

Lines changed: 0 additions & 75 deletions
This file was deleted.

guides/assets/javascripts/syntaxhighlighter/shBrushBash.js

Lines changed: 0 additions & 59 deletions
This file was deleted.

guides/assets/javascripts/syntaxhighlighter/shBrushCSharp.js

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)