Main function:
1. Almost all program code highlighting is supported, including the following languages: Actionscript, ADA, Apache Log, AppleScript, ASM, ASP, AutoIt, Backus-naur form, Bash, Blitzbasic , C, C for Macs, C #, C + +, CAD DCL, Cadlisp, CFDG, CFDG, ColdFusion, CSS, Delphi, DIV, DOS, Eiffel, Fortran, Fortran, FreeBASIC, GML , Groovy, HTML, Inno, IO, Java, Java 5, Javascript, LaTeX, Lisp, Lua, microprocessor ASM, MIRC, MySQL, NSIs, objective C, OCaml, OpenOffice Basic, Oracle 8 SQL, Pascal, Perl, PHP, Pl/sql, Python, Q (Uick) BASIC, robots.txt, Ruby, SAS, Scheme, Sdlbasic, Smalltalk, Smarty, SQL, T-SQL, TCL, Thinbasic, Uno IDL, vb.net, Visual BASIC, Visual Fox Pro, Winbatch, x + +, XML, Z80 ASM, and so on.
2. Code run box, including copy code, run code, save code three functions.
How to use:
1. If you want to highlight a language code, you can use the following format:
[languge=html] Here is the HTML code [/language]
[Languge=xml] Here is the XML code [/language]
[Languge=css] Here is the CSS code [/language]
[Languge=javascript] Here is the JavaScript code [/language]
[Languge=asp] Here is the ASP code [/language]
[languge=php] Here is the PHP code [/language]
[Languge=java] Here is the Java code [/language]
[Languge=cpp] here is C + + code [/language]
[Languge=csharp] Here is C # code [/language]
[Languge=mysql] Here is the MySQL code [/language]
2. If you just want a piece of code to run, you can use the default
Copy Code code as follows:
Format.
Installation method:
1. Download decompression package, if you are using the default template, and have not modified the following several files before:
/viewthread.php
/include/discuzcode.func.php
/include/global.func.php
/include/javascript/common.js
Then, you can upload the extracted files directly to the Web site root directory, the other templates can be modified by reference to the following modifications.
2. If you have previously modified some or all of these files, you can follow the instructions below, modify the files you have previously modified, without modification of the direct upload coverage can be:
(1)/viewthread.php
Found it:
[Code]
$post [' message '] = Discuzcode ($post [' message '], $post [' Smileyoff '], $post [' Bbcodeoff '], $post [' Htmlon '], $forum [' Allowsmilies '], $forum [' Allowbbcode '], ($forum [' Allowimgcode '] && $showimages? 1:0), $forum [' allowhtml '], ($ forum[' Jammer '] && $post [' Authorid ']!= $discuz _uid? 1:0), $pasetype, $post [' Authorid ']);
To
Copy Code code as follows:
$post [' Message '] = discuzcode ($post [' message '], $post [' Smileyoff '], $post [' Bbcodeoff '], $post [' Htmlon '], $forum [' allowsmilies '], $forum [' Allowbbcode '], ($forum [' Allowimgcode '] && $showimages ? 1 : 0), $forum [' allowhtml '], ($forum [' Jammer '] && $post [' Authorid '] != $discuz _uid ? 1 : 0), $ pasetype, $post [' Authorid '], $thread [' Subject ']); //----- ZOUQL Code starts------ $post [' Message '] = preg_replace ("/\s*id=\" Cmsmb_htmlcode\ "(. +?) Textarea\s*/ies ", " Cmsmb_no_br (' $ '), $post [' message ']); //----------------------------
Current 1/4 page
1234 Next read the full text