<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Default syntax highlight</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : Default syntax highlight]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 02:58:06 +0000</pubDate>
  <lastBuildDate>Mon, 07 Dec 2009 20:57:30 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=13049</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Default syntax highlight : Fine - use existed demo app handler...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55456&amp;title=default-syntax-highlight#55456</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 07 December 2009 at 8:57pm<br /><br /><FONT color=#000000>Fine - use existed demo app handler - you don't need to compile it. <DIV>I put it in demo compile-time to make stand-alone demo without any extra files.</FONT></DIV><DIV><FONT size=2><P><FONT color=#000000>void</FONT></FONT><FONT size=2><FONT color=#000000> CMDITextEditorView::OnReloadSyntax() </FONT><FONT color=#000000>{</FONT></P><DIV><FONT color=#000000>//read from you syntax_scheme file into CString </FONT></FONT><FONT color=#000000>sScheme - and keep CR-LF between lines.</FONT></DIV><DIV><FONT size=2></FONT><FONT color=#000000 size=2>//same for extra_color_scheme - read into CString sColorTheme - and keep CR-LF between lines.</FONT></DIV><DIV><FONT color=#000000><FONT size=2>if</FONT></FONT><FONT size=2><FONT color=#000000> (GetEditCtrl().GetEditBuffer())</FONT></DIV><P><FONT color=#000000>GetEditCtrl().SetSyntaxAndColorScheme(sScheme, sColorTheme, TRUE, TRUE); </FONT><FONT color=#000000>}</FONT></P></FONT></DIV>]]>
   </description>
   <pubDate>Mon, 07 Dec 2009 20:57:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55456&amp;title=default-syntax-highlight#55456</guid>
  </item> 
  <item>
   <title><![CDATA[Default syntax highlight : Thank you mark, that did the trick...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55455&amp;title=default-syntax-highlight#55455</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 07 December 2009 at 8:45pm<br /><br />Thank you mark, that did the trick with the ".h" file.<br><br>My ".h" file produced a number of errors and wouldn't highlight properly but it did "sort of" work. I prefer the external file schema since you don't have to recompile every time you change a setting. I guess I'll have to trace until I find where the lag is coming from. <br>]]>
   </description>
   <pubDate>Mon, 07 Dec 2009 20:45:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55455&amp;title=default-syntax-highlight#55455</guid>
  </item> 
  <item>
   <title><![CDATA[Default syntax highlight : You string - one long text. Need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55288&amp;title=default-syntax-highlight#55288</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 30 November 2009 at 4:05pm<br /><br /><P>You string - one long text. Need to change e.g. instead of your line <FONT size=2>sb += _T(<FONT color=#a31515 size=2>"lexClass:"</FONT><FONT size=2>); use </FONT>sb += _T(</FONT><FONT color=#a31515 size=2>"lexClass:\r\n"</FONT><FONT size=2>); and code will work</P></FONT>]]>
   </description>
   <pubDate>Mon, 30 Nov 2009 16:05:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55288&amp;title=default-syntax-highlight#55288</guid>
  </item> 
  <item>
   <title><![CDATA[Default syntax highlight : uploads/20091130_152844__sql_schclass.zipThe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55286&amp;title=default-syntax-highlight#55286</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 30 November 2009 at 3:34pm<br /><br /><a href="uploads/20091130_152844__sql_schclass.zip" target="_blank">uploads/20091130_152844__sql_schclass.zip</a><br><br>The ".h" file method doesn't seem to work either. I have attached _sql_schclass.h if anyone is interested.<br><br>The dialog opening speed is very good. Probably because it's not doing anything <img src="http://forum.codejock.com/smileys/smiley17.gif" border="0" align="absmiddle"> Maybe I've got something wrong in the header file. If so I'll be darned if I know what it is. I didn't seem to encounter any error messages.<br><br>I performed the following tests:<br><br>1. I copy/pasted some SQL into the edit box. No syntax highlighting.<br>2. I typed some SQL directly into the edit box. No syntax highlighting.<br><br>Code:<br><br>&nbsp;&nbsp;&nbsp; m_ctrlSynEdit.SetConfigFile(_T(""), FALSE);<br>&nbsp;&nbsp;&nbsp; m_ctrlSynEdit.m_bUseMonitor = FALSE;<br><br>&nbsp;&nbsp;&nbsp; CXTPSyntaxEditBufferManager* pDataMan = m_ctrlSynEdit.GetEditBuffer();&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; ASSERT(pDataMan);<br>&nbsp;&nbsp;&nbsp; if (pDataMan)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #include "_sql_schclass.h"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; #include "ColorsDataEntry.h"<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_ctrlSynEdit.SetSyntaxAndColorScheme(sScheme, sColorTheme, FALSE, FALSE);<br>&nbsp;&nbsp;&nbsp; }<br><br>]]>
   </description>
   <pubDate>Mon, 30 Nov 2009 15:34:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55286&amp;title=default-syntax-highlight#55286</guid>
  </item> 
  <item>
   <title><![CDATA[Default syntax highlight : Guess some thread searching by...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55162&amp;title=default-syntax-highlight#55162</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 25 November 2009 at 3:57pm<br /><br />Guess some thread searching by all file system (may be including network drives)? Try to debug and see. At least it was one of the reason to introduce another mode - much faster and flexi. Not too many users use&nbsp;syntaxedit in different apps same time and like to force syntax&nbsp;and color scheme updates in sync mode.]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 15:57:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55162&amp;title=default-syntax-highlight#55162</guid>
  </item> 
  <item>
   <title><![CDATA[Default syntax highlight : Do you know what causes the huge...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55160&amp;title=default-syntax-highlight#55160</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 25 November 2009 at 2:56pm<br /><br />Do you know what causes the huge lag when using the "file" based method? I'd really like to use it and it works perfectly except for the lag. <br><br>It's even more pronounced in Debug vs Release so maybe related to memory allocation/deallocation? I'm just guessing here but hope someone might have the answer.<br><br>Thank you!<br>]]>
   </description>
   <pubDate>Wed, 25 Nov 2009 14:56:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55160&amp;title=default-syntax-highlight#55160</guid>
  </item> 
  <item>
   <title><![CDATA[Default syntax highlight : You can find it in our sample:...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55041&amp;title=default-syntax-highlight#55041</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 20 November 2009 at 2:56pm<br /><br />You can find it in our sample:<DIV><FONT size=2><P>CMDITextEditorView::CMDITextEditorView() : m_dwLastUpdate(0), m_dwParserStart(0) {</P><P>.....</P><DIV></FONT><FONT color=#0000ff size=2>#include</FONT><FONT size=2> </FONT><FONT color=#a31515 size=2>"_cpp1_schclass.h"</DIV></FONT><FONT color=#0000ff size=2><P>#include</FONT><FONT size=2> </FONT><FONT color=#a31515 size=2>"ColorsDataEntry.h"</P></FONT><FONT size=2><P>GetEditCtrl().SetConfigFile(_T(</FONT><FONT color=#a31515 size=2>""</FONT><FONT size=2>), FALSE);</P><P>GetEditCtrl().m_bUseMonitor = FALSE;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (GetEditCtrl().GetEditBuffer())</P><P>GetEditCtrl().GetEditBuffer()-&gt;SetFileExt(_T(</FONT><FONT color=#a31515 size=2>".cpp"</FONT><FONT size=2>));</P><P>GetEditCtrl().SetSyntaxAndColorScheme(sScheme, sColorTheme);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 20 Nov 2009 14:56:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55041&amp;title=default-syntax-highlight#55041</guid>
  </item> 
  <item>
   <title><![CDATA[Default syntax highlight : I did the paragraph find/replace...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55040&amp;title=default-syntax-highlight#55040</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 20 November 2009 at 2:51pm<br /><br />I did the paragraph find/replace with Notepad++ instead of word and it saved all the typing, thank you&nbsp;<img src="http://forum.codejock.com/smileys/smiley17.gif" border="0" align="absmiddle"> <br><br>Problems remain. This is the first block of file _sql_schclass.h:<br><br>CString sScheme, sColorTheme, sb;<br><br>/// SQL ///&nbsp;&nbsp;&nbsp; <br>sb += _T("<br>lexClass:<br>&nbsp;&nbsp;&nbsp; parent:file&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = &lt;*.sql&gt;<br>&nbsp;&nbsp;&nbsp; name&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; = c_SQL <br>&nbsp;&nbsp;&nbsp; caseSensitive&nbsp;&nbsp;&nbsp; = 0 <br>&nbsp;&nbsp;&nbsp; txt:colorFG&nbsp;&nbsp;&nbsp; = 0x000000<br>&nbsp;&nbsp;&nbsp; global:EditReparceTimeout_ms = 15000<br>&nbsp;&nbsp;&nbsp; global:OnScreenSchcacheLifeTime_sec = 0<br>&nbsp;&nbsp;&nbsp; global:ParserThreadIdleLifeTime_sec = 300<br>");<br><br>and at end of file:<br><br>sScheme = sb;<br>sb.Empty();<br><br>But of course produces the following errors on compile (for each block):<br><br>Error&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; error C2001: newline in constant<br><br>Since every line of text on a new line in the block either needs a '\' or remove all the line feeds. <br><br>I did solve this error:<br><br>Error&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; error C2143: syntax error : missing ';' before '+='<br><br>The config header file(s) cannot be included as "real header" files at the top of the cpp, but has to be embedded since it's code not class! Doh! <br><br>BOOL CQueryEditor::OnInitDialog()<br>{<br>&nbsp;&nbsp;&nbsp; CXTPDialog::OnInitDialog();<br><br>&nbsp;&nbsp;&nbsp; CRect rc;<br>&nbsp;&nbsp;&nbsp; GetDlgItem(IDC_PLACEHOLDER)-&gt;GetWindowRect( &amp;rc );<br>&nbsp;&nbsp;&nbsp; ScreenToClient( &amp;rc );<br><br>&nbsp;&nbsp;&nbsp; BOOL bCreate = m_ctrlSynEdit.Create(this, TRUE, TRUE);<br>&nbsp;&nbsp;&nbsp; m_ctrlSynEdit.ModifyStyleEx(0, WS_EX_CLIENTEDGE);&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; m_ctrlSynEdit.MoveWindow(&amp;rc); //&amp;rcEdit);&nbsp;&nbsp;&nbsp; <br><br><b>&nbsp;&nbsp;&nbsp; #include "_sql_schclass.h"<br>&nbsp;&nbsp;&nbsp; #include "ColorsDataEntry.h"<br></b><br>...<br>]]>
   </description>
   <pubDate>Fri, 20 Nov 2009 14:51:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55040&amp;title=default-syntax-highlight#55040</guid>
  </item> 
  <item>
   <title><![CDATA[Default syntax highlight : Instead of carpal-tunnel exercise...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55017&amp;title=default-syntax-highlight#55017</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 19 November 2009 at 8:57pm<br /><br />Instead of carpal-tunnel exercise - use open your schclass-file in&nbsp;MS Word and replace all paragraphs ^p to <FONT color=#a31515 size=2>\r\n"</FONT><FONT size=2>); ^p sb += _T(</FONT><FONT color=#a31515 size=2>"</FONT>]]>
   </description>
   <pubDate>Thu, 19 Nov 2009 20:57:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55017&amp;title=default-syntax-highlight#55017</guid>
  </item> 
  <item>
   <title><![CDATA[Default syntax highlight : You can use any code to read your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55013&amp;title=default-syntax-highlight#55013</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4721">mdoubson</a><br /><strong>Subject:</strong> 13049<br /><strong>Posted:</strong> 19 November 2009 at 2:45pm<br /><br />You can use any code to read your syntax and color scheme files into 2 strings and keep \r\n inside and use this 2 strings in <P>GetEditCtrl().SetSyntaxAndColorScheme(sScheme, sColorTheme); //my h-files to make compiled version &#091;prebuid CPP case - like default&#093;</P>]]>
   </description>
   <pubDate>Thu, 19 Nov 2009 14:45:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13049&amp;PID=55013&amp;title=default-syntax-highlight#55013</guid>
  </item> 
 </channel>
</rss>