Discuz5.5.0 highlighted code + run the code box to merge the plug-in download main functions:
1. almost all program codes can be highlighted in 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 (ui Ckdeskbasic1_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. the code running box contains three functions: running code and saving code.
Usage:
1. if you want to highlight a language code, you can use the following format:
[Merge ge = html] here is the HTML code [/language]
[Syntax ge = xml] here is the XML code [/language]
[Languge = css] here is the CSS code [/language]
[Merge ge = javascript] here is the Javascript code [/language]
[Merge ge = asp] here is the ASP code [/language]
[Merge GE = php] here is the PHP code [/language]
[Mongoge = java] here is the Java code [/language]
[Merge ge = cpp] C ++ code [/language]
[Merge ge = csharp] here is C # code [/language]
[Mongoge = mysql] Mysql code [/language]
2. if you only want to run a piece of code, you can use the default
The code is as follows:
Format.
Installation method:
1. download and decompress the compressed package. if you are using the default template and have not modified the following files before:
/Viewthread. php
/Include/discuzcode. func. php
/Include/global. func. php
/Include/javascript/common. js
Then, you can directly upload the decompressed file to the root directory of the website. Other templates can be modified by referring to the subsequent modification method.
2. if you have modified some or all of these files before, you can follow the instructions below to modify the files you have modified before. if you have not modified the files, you can directly upload and overwrite them:
(1)/viewthread. php
Find:
[Code]
$ Post ['message'] = discuzcode ($ post ['message'], $ post ['smileyoff '], $ post ['bbcodeoff'], $ post ['htmlon'], $ forum ['allowscloud'], $ forum ['allowbucketcodes '], ($ forum ['allowimgcode'] & $ showimages? 1: 0), $ forum ['allowhtml '], ($ forum ['jammer'] & $ post ['authorid']! = $ Discuz_uid? 1: 0), $ pasetype, $ post ['authorid']);
Change
The code is as follows:
$ Post ['message'] = discuzcode ($ post ['message'], $ post ['smileyoff '], $ post ['bbcodeoff'], $ post ['htmlon'], $ forum ['allowscloud'], $ forum ['allowbucketcodes '], ($ forum ['allowimgcode'] & $ showimages? 1: 0), $ forum ['allowhtml '], ($ forum ['jammer'] & $ post ['authorid']! = $ Discuz_uid? 1: 0), $ pasetype, $ post ['authorid'], $ thread ['subobject']); // ----- the zouql code starts running ------ $ post ['message'] = preg_replace ("/\ s * id = \" cmsmb_htmlcode \"(. + ?) Textarea \ s */ies "," cmsmb_no_br ('$ 1') ", $ post ['message']); // ------------------------