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{}