Skip to content

BBCode plugin for Mantis BugTracker 1.3 and 2.x

License

Notifications You must be signed in to change notification settings

atrol/BBCodePlus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BBCodePlus

Description

BBCode plugin for Mantis BugTracker 2.x

Incorporates the following configurable features:

  • Editor with toolbars and preview (using jQuery MarkItUp).
  • BBCode processing.
  • Syntax Highlighting (using prismjs).
  • Mostly compatible with the Mantis Formatting plugin (this means they can both be enabled, if desired).
  • NOTE: This plugin does NOT interact well with the Markdown Processing feature of the Mantis Formatting plugin. Disabling the functionality is advised.

Repository Information

NOTE: BBCodePlus 2.x is now the master for the BBCodePlus project. Please re-fork or (carefully) update your fork (branch structure on upstream and origin).

Branch Description
master Support for MantisBT 2.x (current production version).
master-1.3.x Support for MantisBT 1.3.x (legacy).

Contributing to BBCodePlus

If you would like to contribute to BBCode plus, please read this guide first.

Change Log

2.1.3

  • Cleaned up issues with undefined variable notices from old code.

2.1.2

  • Added MarkItUp toolbar support for custom textarea fields.

2.1.1

  • Fixed new parser incompatibility with PHP 5.5.9+.
  • Updated README for all languages supported by code highlighter.

2.1.0

  • Brand new BBCode/HTML parsers, from Genert/bbcode.
  • Updated Prism code highlighter, now with Copy to Clipboard functionality.
  • Addresses multiple outstanding issues.
  • Added check for Mantis Formatting Markdown feature (warns if it is ON, as it will cause issues with BBCodePlus).
  • Cleaned up lots of old code, which will make it easier to maintain.

2.0.18

  • Updated MarkItUp javascript dependency.

Screenshots:

Markup editor

Configuration

Supported BBCode Tags

[img][/img] - Images.
[url][/url] - Links.
[email][/email] - Email addresses.
[color=red][/color] - Colored text.
[highlight=yellow][/highlight] - Highlighted text.
[size][/size] - Font size.
[list][/list] - Unordered lists.
[list=1][/list] - Numbered lists (number is starting number).
[list=a][/list] - Alpha lists (letter is starting letter).
[*] - List items.
[b][/b] - Bold.
[u][/u] - underline
[i][/i] - Italic.
[s][/s] - Strikethrough.
[left][/left] - Left align.
[center][/center] - Center.
[right][/right] - Right align.
[justify][/justify] - Justify.
[hr] - Horizontal rule.
[sub][/sub] - Subscript.
[sup][/sup] - Superscript.
[table][/table] - Table.
[table=1][/table] - Table with border of specified width.
[thead][/thead] - Table head block.
[tbody][/tbody] - Table body block.
[tr][/tr] - Table row.
[th][/th] - Table header column.
[td][/td] - Table column.
[code][/code] - Code block.
[code=sql][/code] - Code block with language definition.
[code start=3][/code] - Code block with line numbers starting at number.
[code=sql start=3][/code] - Code block with language definition and line numbers starting at number.
[quote][/quote] - Quote by *someone* (no name).
[quote=name][/quote] - Quote by *name*.

Supported Languages for Code Highlighting

The implementation of prism.js includes support for languages in 2 modes:

  • default (supported on plugin install).
  • Add support for extra languages (through the plugin's configuration page).

Languages supported by default

Keyword Description
aspnet ASP.NET
bash Bash + Shell
basic BASIC
batch Batch
clike C-like
cpp C++
csharp C#
csp CoffeeScript
css CSS
c C
django Django/Jinja2
docker Docker
hpkp HTTP Public-Key-Pins
hsts HTTP Strict-Transport-Security
http HTTP
ini Ini
javadoclike JavaDoc-like
javascript JavaScript
java Java
js-extras JS Extras
json5 JSON5
jsonp JSONP
json JSON
markup-templating Markup templating
markup Markup + HTML + XML + SVG + MathML
nginx nginx
pascal Pascal + Object Pascal
perl Perl
php-extras PHP Extras
phpdoc PHPDoc
php PHP
plsql PL/SQL
powershell PowerShell
python Python
regex Regex
ruby Ruby
smarty Smarty
sql SQL
vbnet VB.NET
vim vim
visual-basic Visual Basic
wiki Wiki markup
xquery XQuery
yaml YAML

Languages supported by the extra languages feature

Keyword Description
abap ABAP
actionscript ActionScript
apl APL
applescript AppleScript
autohotkey AutoHotKey
bison Bison
brainfuck Brainfuck
coffeescript CoffeeScript
css-extras CSS Extras
dart Dart
diff Diff
d D
eiffel Eiffel
elixir Elixir
erlang Erlang
fortran Fortran
fsharp F#
gherkin Gherkin
git Git
glsl GLSL
go Go
groovy Groovy
haskell Haskell
inform7 Inform 7
jsx React JSX
julia Julia
j J
keyman Keyman
latex LaTex
less Less
lolcode LOLCODE
makefile Makefile
markdown Markdown
matlab MATLAB
mel MEL
mizar Mizar
monkey Monkey
nasm NASM
nim Nim
nsis NSIS
objectivec Objective-C
ocaml OCaml
processing Processing
prolog Prolog
pure Pure
qore Qore
q Q
regex Regex
rest reST
rip Rip
rust Rust
r R
sass Sass (Sass)
sas SAS
scala Scala
scheme Scheme
scss Sass (Scss)
smalltalk Smalltalk
swift Swift
tcl Tcl
twig Twig
typescript TypeScript
verilog Verilog
vhdl VHDL

About

BBCode plugin for Mantis BugTracker 1.3 and 2.x

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 58.3%
  • PHP 32.6%
  • JavaScript 8.8%
  • HTML 0.3%