4
Syntax code highlighting phpBB 3.2
Syntax code highlighting with JavaScript code prettifier for phpBB 3.2
1. In /styles/YOURTEMPLATE/template/bbcode.html
replace this code:
<!-- BEGIN code_open --><div class="codebox"><p>{L_CODE}{L_COLON} <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></p><pre><code><!-- END code_open -->
with this code:
<!-- BEGIN code_open --><div class="codebox"><p>{L_CODE}{L_COLON} <a href="#" onclick="selectCode(this); return false;">{L_SELECT_ALL_CODE}</a></p><pre class="prettyprint"><code><!-- END code_open -->
2. In styles/YOURTEMPLATE/template/overall_header.html put this code in HEAD section of the HTML
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
3. Go to ACP - > Purge Cache
rated 4 times
(4)
(0)
comments: 0 / hits: 8097
/ 4 years ago, thu, mar 2, 17, 06:35:12
More From
» HTML, XML
Comments
There are no comments for this Snippet yet
Only authorized users can post. Please sign in first, or register a free account