Discuz5.5.0 code highlighting + running code box synthesis plugin download 1th/4 page _php Tips

Source: Internet
Author: User
Tags mysql code php code apache log
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.