Writing my last blog post I used “Code Snippet plugin for Windows Live Writer” to embed source code.
I had some difficulty with the formatting once posted.
This post suggested to switch off a special BlogSpot setting to convert line feeds. It didn't really work, but when I remove all linefeeds from the html I get it right:
1: #pragma once
2:
3: namespace MyDiagnosticsNet {
4:
5: using namespace System;
6: using namespace System::Diagnostics;
7:
8: public ref class MyTraceListener : public TraceListener
9: {
10: public:
11: MyTraceListener();
12: virtual void Write(String^ message) override;
13: virtual void WriteLine(String^ message) override;
14: virtual void TraceEvent(TraceEventCache^ eventCache, String^ source, TraceEventType eventType, int id);
15: virtual void TraceEvent(TraceEventCache^ eventCache, String^ source, TraceEventType eventType, int id, String^ message);
16: )
17: ) private:
18: void CheckedTrace(String^ message);
19: static String^ PrependTimeStamp(String^ message);
20: MyBaseDescr* GetBaseDescr();
21: MyBaseDescr* myBaseDescr_;
22: };
23: }
No comments:
Post a Comment