source code and plug-ins are in the back, if you do not want to see my God-like can be directly to the post download
One. Find Plugins
In the use of Windows Live Writer often use the ability to insert code, according to the blog Garden Tutorial, respectively used:
WindowsLiveWriter.CNBlogs.CodeHighlighter and Sourcecodeplugin_version_1.1.zip are unsatisfactory.
Can only find another, so I found it: Windows Live Writer plugin-source Code Formatter
Http://www.amergerzic.com/post/WLWSourceCodePlugin.aspx "Don't hurry, the back is more wonderful",
This plugin supports: Staggered line style and check style, feel very good, although it is English but because the plug-in use is relatively simple to ignore.
Two. Using plugins
Just download and install it right now.
But when I inserted a piece of code, I found that the code that was eventually inserted into the article was significantly more spaced.
Then Baidu then find also someone put on this plug-in complaints, but there is no solution, so went to the official website, found behind the source download (like a)
Three. Changing plugins
Programmer not afraid of tired, since there is the source code, change, first change the style, after changing the HTML string, can not reach the effect, however, in the continuous efforts still found, is the return of the problem "\ r \ n" Here by the character "\ n" to split the string, but retained the "\ r" and each line of code embedded in pre> tag, so "\ r" was retained to automatically generate a new line, so the whole sense of spacing has become higher, so 32 changed.
, followed by the compilation, using the installed file to introduce Wilco.SyntaxHighlighter.dll, and found in the Windows Live wrter installation directory WindowsLive.Writer.Api.dll The introduction of the project, compiled through. Then copy the file shown from the build file and put it in the directory shown in
Then take a look at the effect, (I have the interface fixed a bit ^_^) the code is displayed correctly.
Finally, the generated libraries and source code are put here
Dynamic Library: Http://files.cnblogs.com/files/twzy/WLWSourceCodePluginLib.zip
Source: Http://files.cnblogs.com/files/twzy/WLWSourceCodePlugin.zip
or Http://files.cnblogs.com/files/jx270/WindowsLiveWriter_SourceCodePlugin.rar
Reprinted from Http://www.cnblogs.com/twzy/p/5122520.html
Windows Live Writer Code plugin Makeover