The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
custom bbode
hi
how can i change the [code] tag to this line? <pre name="code" class="delphi"> line above shows the text in <pre></pre> tag as delphi syntax hilighter. and when a user want to post a text in [code] tag , in forums shows the entered text such above??? Best Regards Babak Ahadi |
#2
|
||||
|
||||
I really don't know exactly what that is (sorry), however maybe what you are looking to change is either the template "bbcode_code" or "bbcode_code_printable".
|
#3
|
|||
|
|||
hi
our forum is about delphi programming.we wan that when a user enteres a text in [code] or [delphi] tag ([delphi] is our custom tag,but if possible) , shows the text in this tag in syntax highlighter like delphi(like [php] tag). we found two php code for parse some text in programming language syntax for example delphi or java syntax(you can see a sample in this link: http://www.f-in-box.org/delphi/ ) ---------------------------------------- we should do this with 2 different way. 1-with geshi syntax highlighter: include_once('geshi.php'); $source ="some text for syntax highlighting"; $geshi = new GeSHi($source, 'delphi'); echo $geshi->parse_code(); and the variant $source is the text that goes to be highlight. ----------------------------- 2-with dp.SyntaxHighlighter we should use this line for highlight some text : <LINK href="SyntaxHighlighter.css" type=text/css rel=stylesheet> <SCRIPT language=javascript src="shCore.js"></SCRIPT> <SCRIPT language=javascript src="shBrushDelphi.js"></SCRIPT> <SCRIPT language="javascript"> dp.SyntaxHighlighter.ClipboardSwf = 'SyntaxHighlighter/Scripts/clipboard.swf'; dp.SyntaxHighlighter.HighlightAll('code'); </script> and use <pre> tag like : <PRE class=delphi name="code"> ..... </pre> and then the last line : <SCRIPT language=javascript src="shInit.js"></SCRIPT> ------------------------------- please help me how can i do yhis. Waitnig for your kind reply very soon. Best Regards Babak Ahadi |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|