Author: randomessence
Modification description: Please check the FAQ for Update info and tweaks.
This is a very simple,stable, fully working Syntax 3 highlighter mod for phpbb3 based on Syntax Highlighter 3 by Alex Gorbatchev. It uses javascript to prettify code used in a custom bbcode.
- 42 brushes covering 60'ish syntax included. This mod uses autoloader.js to dynamically load brushes as and when they are called instead of each brush being permanently embedded and loaded in the page source.
- This version uses the scripts from the github repo for Alex's Syntax Highlighter 3. There are a few tweaks and fixes over the normal files found on his website, such as the use of XRegExp 3.0
Manually applied fixes
xregexp 3 pre using a snippet of javascript as detailed here #127
Bash brush improvements #75
improved C Sharp bush #111
shAutoloader.js duplicate loading and html-script support #139
(Java multiline comment greedy Regexp) #150
fix stripCData('ab')=='' #153
a = '"' was starting a multiline string, but it should not have #112
Modified keywords, strings, and value in Python brush #155
multiline comments for SQL #156
Add missing C++11 keywords #158
PHP brush updated functions, keywords, constants & variable #159
Perl Fix syntax highlighting for adjacent pod blocks #163
Perl Correctly highlight dereferenced vars (double sigils) #164
Added missing reserved keywords for JavaScript #169
custom fix for 2 phpbb 3 issues. the replacement of
and unindents/tabs see support section of this mod.
Biferno Brush #66 dlan brush #154 haze brush #151 logtalk brush #118 lasso brush #124
Supported Languages(59):
ACTIONSCRIPT ADA ASSEMBLER_ASM ASSEMBLER_NASM ASSEMBLER_MASM APPLESCRIPT AUTOHOTKEY
BASH BIFERNO BATCH
CSHARP CPLUSPLUS CLOJURE CMD COCOA COFFEE_SCRIPT COLDFUSION CSS
D DELPHI DIFF
ERLANG
FSHARP
GROOVY
HAXE HTML
JAVA JAVAFX JAVASCRIPT
LASSO LATEX LOGTALK LSL LUA
MATHEMATIC MATLAB
OBJECTIVE_C
PASCAL PERL PHP PLAIN_TEXT POWERSHELL PROCESSING PYTHON PYTHON3
ROUTEROS RPG ILE_RPG RUBY
SAHI SASS SCALA SHELL SQL
VISUAL_BASIC
YAML
XHTML XML XSLT
Modification version: 1.2.0
Tested on phpBB version: 3.0.11
Download file: syntax3phpbb3mod.1.2.0.zip
File size: 252.36 KiB
Modification overview page: View
The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.
-->Modification support<--