This project is read-only.

BlogEngine.Net 2.5 Syntaxhighlighter Can't find brush for: cpp

Jul 8, 2011 at 11:06 AM

I have included a cpp code snippet in my post which follows here:

<pre class="brush: cpp;">int res = PerformSomeTask(param);

if (res == 0) {
	if (::IsWindow(ts-&gt;_this-&gt;m_hWnd) == TRUE) {	// ts is thread structure
		SetDlgItemText(IDC_CHECKNOTIFY, _T("Service is not available"));	// IDC_CHECKNOTIFY is a static text control
else {
	if (::IsWindow(ts-&gt;_this-&gt;m_hWnd) == TRUE)
		SetDlgItemText(IDC_CHECKNOTIFY, _T("Service is available"));

Now everytime the post loads there is a javascript alert that says "Can't find brush for: cpp"

Can you please tell me how to fix this.

Jul 8, 2011 at 12:14 PM

Got it. C++ brush was disabled by default. I had to enable this and it worked. I wonder why C++ brush was disabled by default.