Warning: The author of this contribution does not provide support for it anymore.

Syntax Highlighter 3 using autoloader

voRhp.png
1.2.0 phpBB 3.0.11
Released:
Mon Jan 21, 2013 11:06 pm
File size:
252.36 KiB
Validated for:
phpBB 3.0.11
MD5 checksum:
1a622757d192b666fcdb1c6926259dc5
Install Time
About 2 Minute(s)
Install Level
Easy
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.

Works with automod on a phpbb3 3.0.11 and should be pretty much update proof and backward compatible with older versions since there are only 4 simple edits. and no phpbb 3 core code is edited or changed.

    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

Themes can be easily changed via the ACP. Includes custom themes as long as they are uploaded to the existing themes folder.

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
11-10-2012 19-30-38.png acp.png
  • Revisions
    Version
    phpBB Version(s)
  • 1.2.0
    3.0.11
    Validation time: Jan 21, 2013 11:06 pm
    Install Time: About 2 Minute(s)
    Install Level: Easy
    Downloads: 4872
  • 1.1.3
    3.0.11
    Validation time: Oct 10, 2012 12:10 pm
    Install Time: About 2 Minute(s)
    Install Level: Easy
    Downloads: 867
  • 1.0.4
    3.0.10
    Validation time: Jul 19, 2012 1:05 pm
    Install Time: About 2 Minute(s)
    Install Level: Easy
    Downloads: 2293