Search found 2 matches

by odf
Wed Nov 22, 2017 8:36 am
Forum: [3.x] Tickets Discussion
Topic: PHPBB3-13919 - Syntax highlighting in [code]
Replies: 23
Views: 20410

Re: PHPBB3-13919 - Syntax highlighting in [code]

David, honestly I was looking at https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js and I didn't see the 2013 on line 3 at the time I posted, my fault. The github link comes in handy, forked as well. Well, I know the Joshyphp's extension already, but I am not completely satis...
by odf
Wed Nov 22, 2017 8:24 am
Forum: [3.x] Tickets Discussion
Topic: PHPBB3-13919 - Syntax highlighting in [code]
Replies: 23
Views: 20410

Re: PHPBB3-13919 - Syntax highlighting in [code]

3.1 provides syntax highlighting for PHP (and only PHP) via highlight_string(), using the BBCode [code=php] . 3.2 has no syntax highlighting in code blocks for any language. My recommendation is to use a JavaScript highlighter such as highlight.js or SyntaxHighlighter . My preference goes to highli...