Syntaxhighlighter three ways to remove the question mark icon in the top right corner _ Web Editor

Source: Internet
Author: User

The use of free products has the obligation to promote it, so when using the tool, will automatically display a Help icon, click it will be prompted to visit the official website and appeal for donations, you can remove the icon after paying.

Syntaxhighlighter

The official approach is beyond reproach, but if we want to cancel the seemingly unsightly icon and don't want to pay for it, what is the solution? Here are three ways I've learned:

Method One

In front of the Web page, usually add the following code in

<script type= "Text/javascript" >syntaxhighlighter.defaults[' toolbar ' = false;</script>

Method Two

Add "toolbar:false;" In the pre's class. (Bold section), as follows:

<pre class= "Brush:js;toolbar:false;" > Put coloring code here </pre>

Note: Some coloring code notation is textarea, so the method is the same. Such as:

<textarea class= "Brush:js;toolbar:false;" > Put coloring code here </textarea>

Method Three

There are many uses of syntaxhighlighter, in some cases, if the previous two methods are not valid, you can use the method to modify the CSS directly to remove the question mark icon in the upper-right corner:

First find shcore.css This file (usually under the Style folder), open it, find ". Syntaxhighlighter. Toolbar {" (bold), and then at the end of this class, add " Display:none;" (The bold part), on it.

Examples are as follows:

Copy Code code as follows:

. syntaxhighlighter. Toolbar {
Position:absolute!important;
RIGHT:1PX!important;
TOP:1PX!important;
WIDTH:11PX!important;
HEIGHT:11PX!important;
font-size:10px!important;
Z-index:10!important; This is the end of the original.
Display:none; Want to turn it off? Add this line to
}


After I tested many times, as above three methods, there is always a kind of effective removal of syntaxhighlighter in the upper-right corner of the question mark icon.

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.