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

SyntaxHighlighter Support #61

Open
rposbo opened this issue Jan 13, 2012 · 3 comments
Open

SyntaxHighlighter Support #61

rposbo opened this issue Jan 13, 2012 · 3 comments
Labels
Milestone

Comments

@rposbo
Copy link

rposbo commented Jan 13, 2012

Can you introduce support for Alex Gorbatchev's SyntaxHighlighter (https://github.com/alexgorbatchev/SyntaxHighlighter) in the preview window?

@ghost
Copy link

ghost commented Jan 14, 2012

To initial SyntaxHighlighter, am I right in assuming you need to have something like class="brush: php; highlight: [5, 15]; html-script: true" on the code blocks to get it to trigger, compared to Prettify which works on any old code block?

The latter "just works", the former gives you a lot more control over the language being highlighted.

@ghost
Copy link

ghost commented Jan 14, 2012

Oh, my bad, Prettify is meant to be on particular classes too. I got around that on my blog with a bit of JS, maybe the same can be done of SyntaxHighlighter

@rposbo
Copy link
Author

rposbo commented Jan 15, 2012

syntaxhighlighter allows you to use really simple tags to enable language-specific highlighting; e.g., [powershell][/powershell] and [csharp][/csharp]

I use this a lot on my blog and always use WLW to write the posts and then log in to Wordpress to edit the post to add in the code highlighting. Annoying. I might just be a case of popping in the syntaxhighlighter js into the preview area of markpad; I'll have a looksee myself, just in case.

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

No branches or pull requests

1 participant