Syntax highlighting plug-in Windows Live writer

Source: Internet
Author: User

1 vspaste

The plug-in is used to copy the code in IDE, such as Vs, Delphi, vs Studio 6, sharpdevelop, and Zend studio, to live writer. You can click here to download the package, decompress it, and copy the DLL file to the Plugins directory in the live writer installation directory. If it is installed on disk C, the path is as follows: C: \ Program Files \ Windows Live \ writer \ plugins.

Copy the code from IDE and click the red mark to copy the code to live writer.

 

2 highlight4writer

After the plug-in is installed, you can select more than a dozen languages, such as C # xml SQL, in a pop-up dialog box. You can click here to download the plug-in. After the download, the decompressed files are also copied to the Plugins directory, open live writer and you will see the following figure.

The dialog box for entering the code is displayed, as shown in figure

In my personal sense, the first method is better, because the second method will generate a lot of HTML code, while the first type of HTML is relatively simple, in addition, the Code is in a code Div, you can set CSS to change the style of the Code section.

The following is a CSS code style similar to Lao Zhao. Open "option-" Configure "of" back-end management of the blog Garden "and add the following CSS style to the text box under" customize by CSS page ".

. Code {Background: # f8f8ee; border-left: solid 3px # 6ce26c; border-top: dashed 1px # bbbbbb; border-Right: dashed 1px # bbbbbb; border-bottom: dashed 1px # bbbbbb; padding: 5px; margin: 0 5px 0 5px; font-family: verdana, Helvetica, "", Arial, "";}

Then the code added in the article is as follows:

public class Test{}
Related Article

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.