Add the "run code" function to zblog, which is a new function for z-bog to modify the z-blog source code. This method has been used for a long time. It is not too late for me to add it now, because some time-related code may be pasted in the future,
discuz!5.0 Forum display style PHP code highlighting plugin,
The PHP code syntax coloring, like the PHP comrades can easily see the code.
Also added HTML code to run the function.
This plugin was modified on the basis of a previous comrade's discuz!4
1. How to create a nested filter:Filters that allow you to reduce the matching elements in the collection,Only those parts that match the given selector are left. In this case,The query deleted any (: not) there (: has)Contains a child node of class
Some of the code segments are supported since jQuery1.4.2, while others are actually useful functions or methods. They can help you complete things quickly and well. These are code segments with the best performance I can remember. If you find
Put runcode. js in the website directory when using it, and put the following code where you need to run the codeCopy codeThe Code is as follows: {1} tip: you can modify some code before running You can.Runcode. js FileCopy codeThe Code is
Discuz! 5.0 Forum display style php code highlighting plug-in,Make the php code syntax coloring. comrades who like PHP can easily read the code.Added the html code running function.This plug-in was released by a previous Comrade Discuz! 4. the php
Php malicious code filtering function
Public Function DecodeFilter (html, filter)Html = LCase (html)Filter = split (filter ,",")For Each I In filterSelect Case ICase "SCRIPT" 'removes all client scripts such as javascept, vbscript, jscript, js, vbs,
Zepto source code analysis, zepto source codeToday, I took the time to review the source code of Zepto and annotate it according to my own understanding. You are welcome to make a brick. Source code version: v1.1.4 Source: http://zeptojs.com/After
. Html () uses HTML tags for reading and modifying elements. Text () is used to read or modify the plain text content of an element.. Val () is used to read or modify the value of a form element.I. HTML in jquery 1. No parameter html ()Token is used
DEMO code: save another webpage [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]The above code can only be used in the IE kernel browser, but you can refer to the following code for
Hidden fields are not visible to the user in the page, the purpose of inserting hidden fields in a form is to collect or send information for use by programs that are processed by the form, and here is a detailed description of how this hidden field
Use the time to put the runcode.js to the site directory, where you need to run the effect of the code to put the following code
Copy Code code as follows:
{1} Hint: You can modify some of the code before running
It's
Did not expect the recent (December 2012) Implementation of the Code replication problem, or all the content is a line, only people with tools can quickly see the code, so that the code to use up a lot simpler, you can directly copy Ah, do not have
Function Content_code (STR)
Dim Ary_string,i,n,n_pos
Ary_string=split (STR, "[Code]")
N=ubound (ary_string)
If NContent_code=str
Exit function
End If
For I=1 to N
N_pos=instr (Ary_string (i), "[/code]")
If N_pos>0 Then
Ary_string (i) = "" & Server.
discuz!5.0 Forum display style PHP code highlighting plugin,
The PHP code syntax coloring, like a comrade PHP can easily see the code.
Also added the HTML code run function.
This plugin was modified on the basis of a previous comrade's discuz!4 PHP
Before, I introduced to learn to install and configure the front-end Automation Tool gulp, feel gulp indeed than grunt configuration is much simpler, so I decided to further study gulp, went to the Internet to check the data, found that gulp can
discuz!5.0 Forum display style PHP code highlighting plugin,
The PHP code syntax coloring, like a comrade PHP can easily see the code.
Also added the HTML code run function.
This plugin was modified on the basis of a previous comrade's discuz!4 PHP
We all know that HTML static Web pages are more easily indexed by search engines, dynamic generation of HTML pages, but also to increase the number of Web pages, search engines can be included in the number of more, and then add to improve the
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.