View unanswered posts | View active topics It is currently May 20th, '13, 10:30




This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
 New BBCodes 
Author Message
Site Admin
User avatar

Joined: Aug 13th, '09, 14:34
Posts: 4
Post New BBCodes
Added some BBCodes (see: faq.php?mode=bbcode) to enhance posts.

  • youtube - Embedded YouTube videos.
  • googlevid - Embedded Google videos.
  • mp3 - Embedded MP3 player.
  • hr - Insert a "horizontal rule" (line).
  • left, right, center - Allows you to align text/images.


Sep 23rd, '09, 04:19
Profile
Site Admin
User avatar

Joined: Aug 13th, '09, 14:34
Posts: 4
Post "Syntax Highlighter" (work in progress)
Added "Syntax Highlighter" so we can do beyond the default "code" BBCode.

Example using Lua syntax highlighting:
Code:
[lua]print test[/lua]

Syntax: [ Download ] [ Hide ]
Using lua Syntax Highlighting
print test
Parsed in 0.011 seconds, using GeSHi 1.0.8.4

Code:
[syntax="lua"]print test[/syntax]

Syntax: [ Download ] [ Hide ]
Using lua Syntax Highlighting
print test
Parsed in 0.010 seconds, using GeSHi 1.0.8.4


CSS format test:
Code:
[syntax="css"] ... [/syntax]

Syntax: [ Download ] [ Hide ]
Using css Syntax Highlighting
/*
        XS Syntax Highlighter CSS
*/

.content .code {
        color: #444;
        display: block;
        margin: 5px 20px;
        width: auto;
        border: solid 1px #D0D0D0;
        background-color: #FFF;
        padding: 5px;
        font-size: 0.9em;
        font-family: Courier, 'Courier New', sans-serif;
}
 
Parsed in 0.023 seconds, using GeSHi 1.0.8.4


Code:
[css start="10" lines="geshi-n"] ... [/css]

Syntax: [ Download ] [ Hide ]
Using css Syntax Highlighting
  1. /*
  2.         XS Syntax Highlighter CSS
  3. */
  4. .content .code {
  5.         color: #444;
  6.         display: block;
  7.         margin: 5px 20px;
  8.         width: auto;
  9.         border: solid 1px #D0D0D0;
  10.         background-color: #FFF;
  11.         padding: 5px;
  12.         font-size: 0.9em;
  13.         font-family: Courier, 'Courier New', sans-serif;
  14. }
  15.  
Parsed in 0.023 seconds, using GeSHi 1.0.8.4


Syntax: [ Download ] [ Hide ]
Using php Syntax Highlighting
<?php echo true; ?>
Parsed in 0.200 seconds, using GeSHi 1.0.8.4



For detailed usage see "Syntax Highlighter":
http://www.phpbbstyles.co.uk/info/viewt ... p?f=6&t=39

If I get around to it anytime soon, I'll change the theme a bit to match MM's.

Supports 138 languages, the following BBCode tags are supported:
version, quoter, syntax, spoil, spoiler, hide, marquee, marq, s, hr, sub, sup, ovl, table, countdown, youtube, rquote, nfo, gamertag, code, abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, avisynth, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cmake, cobol, cpp, cpp-qt, csharp, css, d, dcs, delphi, diff, div, dos, dot, eiffel, email, erlang, fo, fortran, freebasic, genero, gettext, glsl, gml, gnuplot, groovy, haskell, hq9plus, html4strict, idl, ini, inno, intercal, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, locobasic, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, make, matlab, mirc, modula3, mpasm, mxml, mysql, nsis, oberon2, objc, ocaml, ocaml-brief, oobas, oracle11, oracle8, pascal, per, perl, php, php-brief, phpbb, pic16, pixelbender, plsql, povray, powershell, progress, prolog, properties, providex, python, qbasic, rails, rebol, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql, typoscript, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xhtml, xml, xorg_conf, xpp, z80

(140) Supported Syntaxes: abap, actionscript, actionscript3, ada, apache, applescript, apt_sources, asm, asp, autoit, avisynth, bash, basic4gl, bf, bibtex, blitzbasic, bnf, boo, c, c_mac, caddcl, cadlisp, cfdg, cfm, cil, cmake, cobol, cpp, cpp-qt, csharp, css, d, dcs, delphi, diff, div, dos, dot, eiffel, email, erlang, fo, fortran, freebasic, genero, gettext, glsl, gml, gnuplot, groovy, haskell, hq9plus, html4strict, idl, ini, inno, intercal, io, java, java5, javascript, kixtart, klonec, klonecpp, latex, lisp, locobasic, lolcode, lotusformulas, lotusscript, lscript, lsl2, lua, m68k, make, matlab, mirc, modula3, mpasm, mxml, mysql, nsis, oberon2, objc, ocaml, ocaml-brief, oobas, oracle11, oracle8, pascal, per, perl, php, php-brief, phpbb, pic16, pixelbender, plsql, povray, powershell, progress, prolog, properties, providex, python, qbasic, rails, rebol, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql, typoscript, vb, vbnet, verilog, vhdl, vim, visualfoxpro, visualprolog, whitespace, whois, winbatch, xhtml, xml, xorg_conf, xpp, z80


Dec 19th, '09, 21:06
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Based on design by STSoftware, modded by Sirmabus Copyright© 2009-2011