<?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 : A few questi&#111;ns about Syntax Editor</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Syntax Edit : A few questi&#111;ns about Syntax Editor]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 23 May 2026 04:26:56 +0000</pubDate>
  <lastBuildDate>Sat, 29 Sep 2007 19:18:02 +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=5927</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[A few questi&#111;ns about Syntax Editor : Scintilla is open-source. In it,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=26644&amp;title=a-few-questions-about-syntax-editor#26644</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 29 September 2007 at 7:18pm<br /><br />Scintilla is open-source. In it, you find a tokenizer which lets you colorize on the fly. Even though their state machine is flawed, it gives the programmer great control of the colorization. <DIV>&nbsp;</DIV><DIV>I'm not saying that the current implementation of SE is bad, I'm just saying that there will be situations where the programmer wants total control of the syntax highlighting. In these situations there must be a customizable callback function: "Current line changed. How do you want to colorize it?" (don't forget multiline comment changes...)</DIV><DIV>&nbsp;</DIV><DIV>When it comes to adding keywords, this requires not just "colorize all words found in list X", but also "colorize all words matching pattern X".</DIV><DIV>&nbsp;</DIV><DIV>For instance, the user might want to colorize all strings ("some text") in a certain color/style without having to alter some shclass-file... Hence, all we need is a well-designed callback function where we can do whatever we want&nbsp;<img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Sat, 29 Sep 2007 19:18:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=26644&amp;title=a-few-questions-about-syntax-editor#26644</guid>
  </item> 
  <item>
   <title><![CDATA[A few questi&#111;ns about Syntax Editor : One needs to be able to add KEYWORDS...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=26603&amp;title=a-few-questions-about-syntax-editor#26603</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2223">Tomasz</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 28 September 2007 at 10:10am<br /><br /><P>One needs to be able to add KEYWORDS in run-time.</P><DIV>This is CRUICIAL. For example, I have an application that features full-blown programming language that allows user to define his own functions. Either via DLLs (plugins) or by function definition.&nbsp;And I want user-defined functions to be HIGHLIGHTED. For that I need to be able to add keywords in runtime to SyntaxEdit colorizer. I also need to add them to auto-complete boxes as well as parameter info. </DIV><DIV>&nbsp;</DIV><DIV>I have got impression that CodeJock developers do not really use the libraries they create. You should actually try to create some bigger sample application that actually does&nbsp;something more than being Notepad replacement in order to understand what issues are met with when one tries to actually use the control in real-world. </DIV><DIV>This is similar to compiler creator that should actually compile the programs with the compiler he created. Otherwise he won't be aware of many issues that surface when you actually try to use the product in real-world situation, not only the most trivial 'demo' case.</DIV><DIV>&nbsp;</DIV><DIV>As far as loading from string via CArchive - why making this most basic and required operation as complicated???? Should I mention SLOW, too?</DIV><DIV>&nbsp;</DIV><DIV>Do you really imagine that anybody would program for Windows if there was no SetWindowText() function???? And Windows API required to go through CArchive instead????&nbsp; This is ridiculous.</DIV><DIV>&nbsp;</DIV><DIV>Give us straight SetWindowText() equivalent! That's after all Windows standard. Why do you make things harder than they should be!</DIV><DIV>&nbsp;</DIV><DIV>Codejock you need to decide whenever you&nbsp;want to release somethign SERIOUS or just a&nbsp;toy for kids. At the moment SyntaxEdit is a toy.</DIV><DIV>&nbsp;</DIV><DIV>To&nbsp;be&nbsp;considered professional it needs:</DIV><DIV>a) full API (with basic&nbsp;operations like SetText/GetText available directly, not using slow workarounds) </DIV><DIV>b) full feature set (colorizing, user-defined keywords&nbsp;added programmatically, programmatic control over auto-complete, "Parameter info" functionality with programmatic control&nbsp;too). Everything what is available from .INI config, should be also available from the code (without any external files)</DIV><DIV>c) it must be FAST. I can not stress it more. Speed is cruicial thing. Right now the control is slow. Please use the PROFILER to find bottlenecks.&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 28 Sep 2007 10:10:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=26603&amp;title=a-few-questions-about-syntax-editor#26603</guid>
  </item> 
  <item>
   <title><![CDATA[A few questi&#111;ns about Syntax Editor : I think we will add possibility...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=26587&amp;title=a-few-questions-about-syntax-editor#26587</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3233">AndreiM</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 28 September 2007 at 5:30am<br /><br /><DIV>I think we will add possibility to load configuration and schemas from resources rather then from files. </DIV><DIV>&nbsp;</DIV><DIV><EM>Adding keywords in run-time</EM> will be added after 11.2.1. <BR>&nbsp;&nbsp; Can you explain more about your needs for this feature. </DIV><DIV>&nbsp;</DIV><DIV><EM>A tokenizer similar to the one found in Scintilla.</EM> <BR>&nbsp;&nbsp; Can you explain more about this point too.</DIV>]]>
   </description>
   <pubDate>Fri, 28 Sep 2007 05:30:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=26587&amp;title=a-few-questions-about-syntax-editor#26587</guid>
  </item> 
  <item>
   <title><![CDATA[A few questi&#111;ns about Syntax Editor : About set text rather then file: ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=26586&amp;title=a-few-questions-about-syntax-editor#26586</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3233">AndreiM</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 28 September 2007 at 5:28am<br /><br /><DIV>About set text rather then file:</DIV><DIV>&nbsp; You can use CXTPSyntaxEditBufferManager::SerializeEx to do this now.</DIV><DIV>&nbsp; I will add them as members of CXTPSyntaxEditCtrl.</DIV><DIV>&nbsp;</DIV><DIV>EXAMPLE:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>CString GetText()<BR>{<BR>&nbsp;if (m_wndSyntaxEdit.GetEditBuffer())<BR>&nbsp;{<BR>&nbsp;&nbsp;CMemFile memFile;<BR>&nbsp;&nbsp;CArchive ar(&amp;memFile, CArchive::store);</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;BOOL bUnicode = (sizeof(TCHAR) == 2);<BR>&nbsp;&nbsp;m_wndSyntaxEdit.GetEditBuffer()-&gt;SerializeEx(ar, bUnicode, FALSE, -1);</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;ar &lt;&lt; (DWORD)0;</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;ar.Close();</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;memFile.SeekToBegin();</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;void* pTextData = NULL;<BR>&nbsp;&nbsp;void* pTextEnd = NULL;<BR>&nbsp;&nbsp;memFile.GetBufferPtr(CFile::bufferRead, (UINT)-1, &amp;pTextData, &amp;pTextEnd);<BR>&nbsp; <BR>&nbsp;&nbsp;return pTextData;<BR>&nbsp;}<BR>&nbsp;return _T("");<BR>}<BR></FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>void SetText(LPCTSTR pcszText)<BR>{<BR>&nbsp;if (m_wndSyntaxEdit.GetEditBuffer() &amp;&amp; pcszText)<BR>&nbsp;{&nbsp;<BR>&nbsp;&nbsp;int nStrLenB = (int)_tcslen(pcszText) * sizeof(TCHAR);<BR>&nbsp;&nbsp;CMemFile memFile((BYTE*)pcszText, nStrLenB);<BR>&nbsp;&nbsp;memFile.SeekToBegin();</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;CArchive ar(&amp;memFile, CArchive::load);</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;BOOL bUnicode = (sizeof(TCHAR) == 2);<BR>&nbsp;&nbsp;m_wndSyntaxEdit.GetEditBuffer()-&gt;SerializeEx(ar, bUnicode);</FONT></DIV><DIV><FONT face="Courier New, Courier, mono" size=2></FONT>&nbsp;</DIV><DIV><FONT face="Courier New, Courier, mono" size=2>&nbsp;&nbsp;//---------------------------------------<BR>&nbsp;&nbsp;m_wndSyntaxEdit.RefreshColors();<BR>&nbsp;&nbsp;m_wndSyntaxEdit.RecalcScrollBars();<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;m_wndSyntaxEdit.UpdateWindow();&nbsp;&nbsp;<BR>&nbsp;}<BR>}</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 28 Sep 2007 05:28:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=26586&amp;title=a-few-questions-about-syntax-editor#26586</guid>
  </item> 
  <item>
   <title><![CDATA[A few questi&#111;ns about Syntax Editor : I agree completely. In my application,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=22593&amp;title=a-few-questions-about-syntax-editor#22593</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 07 May 2007 at 2:06am<br /><br />I agree completely. In my application, I certainly do not want to provide a SyntaxEdit.ini among primitive scheme-files. Also, I cannot get the desired highlighting without adding keywords.<DIV></DIV><DIV></DIV>I believe these&nbsp;are&nbsp;must-have features in order to compete with controls such as BCGEdit.<DIV>&nbsp;</DIV><DIV>CXTPSyntaxEditCtrl definitely needs these two features:</DIV><DIV>1) Adding keywords in run-time.</DIV><DIV>2) A tokenizer similar to the one found in Scintilla.</DIV>]]>
   </description>
   <pubDate>Mon, 07 May 2007 02:06:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=22593&amp;title=a-few-questions-about-syntax-editor#22593</guid>
  </item> 
  <item>
   <title><![CDATA[A few questi&#111;ns about Syntax Editor : What would be very useful also...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=22588&amp;title=a-few-questions-about-syntax-editor#22588</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 06 May 2007 at 5:35pm<br /><br />What would be very useful also would be the ability to <DIV>&nbsp;</DIV><DIV>1. get it to edit a string, rather than a file</DIV><DIV>2. Allow us to set config not using an INI file -&nbsp;I don't want to have to ship an extra file around just to get syntax editing working, and I don't want anyone messing with the file either - I want it fixed</DIV><DIV>3. Enable using a string for the schema rather than a schema file.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 06 May 2007 17:35:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=22588&amp;title=a-few-questions-about-syntax-editor#22588</guid>
  </item> 
  <item>
   <title><![CDATA[A few questi&#111;ns about Syntax Editor :    Italo wrote:Is it possible...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=21019&amp;title=a-few-questions-about-syntax-editor#21019</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2818">jrodd</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 08 March 2007 at 11:08am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Italo" alt="Originally posted by Italo" style="vertical-align: text-bottom;" /> <strong>Italo wrote:</strong><br /><br /><p style="margin: 0in 0in 0pt;"><font face="Times New Roman" size="3">Is it possible to dynamically add keywords? If not, can this feature be added?</font></p><p style="margin: 0in 0in 0pt;"><o:p><font face="Times New Roman" size="3">&nbsp;</font></o:p></p><p style="margin: 0in 0in 0pt;"><font face="Times New Roman" size="3">Thanks,</font></p><p style="margin: 0in 0in 0pt;"><font face="Times New Roman" size="3">Italo</font></p></td></tr></table><br><br>How about dynamically adding classes to the schema also?&nbsp; One, or both, of these features would be helpful.<br><br>Thanks,<br>jrodd<br>]]>
   </description>
   <pubDate>Thu, 08 Mar 2007 11:08:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=21019&amp;title=a-few-questions-about-syntax-editor#21019</guid>
  </item> 
  <item>
   <title><![CDATA[A few questi&#111;ns about Syntax Editor : Is it possible to dynamically...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=19053&amp;title=a-few-questions-about-syntax-editor#19053</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=270">Italo</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 09 January 2007 at 9:09am<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Is it possible to dynamically add keywords? If not, can this feature be added?</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Thanks,</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Italo</FONT></P>]]>
   </description>
   <pubDate>Tue, 09 Jan 2007 09:09:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=19053&amp;title=a-few-questions-about-syntax-editor#19053</guid>
  </item> 
  <item>
   <title><![CDATA[A few questi&#111;ns about Syntax Editor : Hi, There are no a direct interface...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=18728&amp;title=a-few-questions-about-syntax-editor#18728</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 02 January 2007 at 12:25pm<br /><br />Hi, <br><br>There are no a direct interface for that. For more information look for implementations of methods:<br>1)<span style="font-family: 'Arial'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">CXTPSyntaxEditBufferManager::Load(CFile *pFile, LPCTSTR pcszFileExt)</span><br>2)<span style="font-family: 'Arial'; font-size: 12px; color: rgb(0, 0, 255); : transparent;">CXTPSyntaxEditBufferManager::SetFileExt</span><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Tue, 02 Jan 2007 12:25:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=18728&amp;title=a-few-questions-about-syntax-editor#18728</guid>
  </item> 
  <item>
   <title><![CDATA[A few questi&#111;ns about Syntax Editor : 1. How to I programmatically setup...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=18665&amp;title=a-few-questions-about-syntax-editor#18665</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=270">Italo</a><br /><strong>Subject:</strong> 5927<br /><strong>Posted:</strong> 28 December 2006 at 12:07am<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>How to I programmatically setup the control without using ini files? Can you please give us an example?</P><DIV></FONT><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><FONT face=Calibri size=3>2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN><FONT face=Calibri size=3>The sample application only works if you’re working with a file extensions. Is it possible to use the control without a file extension? Example: All documents without extensions should use the cpp syntax.</FONT></DIV><FONT face=Calibri size=3><DIV><SPAN style="mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: Ignore"><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;</SPAN></SPAN></SPAN></DIV><DIV>Thanks,</DIV><DIV>Italo</FONT></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt 0.25in"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 10pt"><o:p><FONT face=Calibri size=3>&nbsp;</FONT></o:p></P>]]>
   </description>
   <pubDate>Thu, 28 Dec 2006 00:07:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5927&amp;PID=18665&amp;title=a-few-questions-about-syntax-editor#18665</guid>
  </item> 
 </channel>
</rss>