Discuz5.5.0 code highlighting + Run code box compositing plugin download 1th/4 page _php Tutorial

Source: Internet
Author: User
Tags mysql code apache log
Main functions:
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 more.
2. Code run box, including copy code, run code, save code three function.

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 CodeThe code is as follows: format.

Installation method:
1. Download the decompression package, if you are using the default template, and have not previously modified the following files:
/viewthread.php
/include/discuzcode.func.php
/include/global.func.php
/include/javascript/common.js
You can then upload the extracted files directly to the root of the Web site, and other templates can be modified by reference to the following modification methods.
2. If you have previously modified some or all of these files, you can follow the instructions below to modify the files you have previously modified, without modification of the direct upload overlay 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 ']);

Switch
Copy CodeThe code is 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 ']); -----The start of the ZOUQL code run------$post [' message '] = preg_replace ("/\s*id=\" cmsmb_htmlcode\ "(. +?) Textarea\s*/ies "," Cmsmb_no_br (' $ ') ", $post [' message ']); //----------------------------

http://www.bkjia.com/PHPjc/318480.html www.bkjia.com true http://www.bkjia.com/PHPjc/318480.html techarticle main functions: 1. Highlighting of all program codes is supported, including the following languages: Actionscript, ADA, Apachelog, AppleScript, ASM, ASP, AutoIT, Backus-naurform, Bash, B ...

  • 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.