1 vspaste
This plug-in can be used to integrate the functions of Vs, Delphi, vs Studio 6, sharpdevelop, Zend studio, and other ideCodeCopy to live writer as is. 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, "" ;
}
ThenArticleThe effect of the code added in is as follows:
Public classTest
{
}
Source: http://www.cnblogs.com/oec2003/archive/2009/09/22/1572166.html