<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Syntax highlighted labels &#038; panels	</title>
	<atom:link href="https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels/feed" rel="self" type="application/rss+xml" />
	<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=syntax-highlighted-labels-panels</link>
	<description>Professional Matlab consulting, development and training</description>
	<lastBuildDate>Sun, 03 Jul 2022 14:36:07 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
	<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-514341</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Sun, 03 Jul 2022 14:36:07 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-514341</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-514236&quot;&gt;Adam&lt;/a&gt;.

Adam - perhaps there is a builtin syntax-pane control for uifigures, but I am not aware of one. 
Perhaps you can try to implement a uihtml panel with a GeSHi syntax-highlighter JavaScript library - this could be a very useful File Exchange utility for users.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-514236">Adam</a>.</p>
<p>Adam &#8211; perhaps there is a builtin syntax-pane control for uifigures, but I am not aware of one.<br />
Perhaps you can try to implement a uihtml panel with a GeSHi syntax-highlighter JavaScript library &#8211; this could be a very useful File Exchange utility for users.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Adam		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-514236</link>

		<dc:creator><![CDATA[Adam]]></dc:creator>
		<pubDate>Mon, 13 Jun 2022 16:39:08 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-514236</guid>

					<description><![CDATA[Hi Yair,

Is there any way to implement this SyntaxPane functionality in the new uifigure-based apps?  Thanks!]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>Is there any way to implement this SyntaxPane functionality in the new uifigure-based apps?  Thanks!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-367009</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Thu, 07 Jan 2016 17:59:09 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-367009</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-367008&quot;&gt;Shalin&lt;/a&gt;.

@Shalin - the easiest way would be to simply Google it with the word &quot;java&quot; and the relevant keyword. For example, in your case: Google &quot;java setContentType&quot;. There&#039;s plenty of online documentation on Java, way more than on Matlab.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-367008">Shalin</a>.</p>
<p>@Shalin &#8211; the easiest way would be to simply Google it with the word &#8220;java&#8221; and the relevant keyword. For example, in your case: Google &#8220;java setContentType&#8221;. There&#8217;s plenty of online documentation on Java, way more than on Matlab.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Shalin		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-367008</link>

		<dc:creator><![CDATA[Shalin]]></dc:creator>
		<pubDate>Thu, 07 Jan 2016 17:54:37 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-367008</guid>

					<description><![CDATA[Hello,

Thanks for so much work. So, I was wondering how can I check the documentation of all the JAVA classes I can use? For example, the method setContentType sets the syntax highlight. I would want to see the list of all the available constant values such as MIME.]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks for so much work. So, I was wondering how can I check the documentation of all the JAVA classes I can use? For example, the method setContentType sets the syntax highlight. I would want to see the list of all the available constant values such as MIME.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-352649</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Wed, 08 Jul 2015 07:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-352649</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-352640&quot;&gt;John Smith&lt;/a&gt;.

@John - to the best of my knowledge there is no direct method to do this. You are welcome to try to poke around in the Java classes mentioned in this article, but I don&#039;t think it will get you what you want.

I&#039;ve created a utility that does this (stripping comments from m-files) for my personal use and it works splendidly. I&#039;m willing to sell you a copy if you wish - contact me by email (altmany at gmail) if you are interested.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-352640">John Smith</a>.</p>
<p>@John &#8211; to the best of my knowledge there is no direct method to do this. You are welcome to try to poke around in the Java classes mentioned in this article, but I don&#8217;t think it will get you what you want.</p>
<p>I&#8217;ve created a utility that does this (stripping comments from m-files) for my personal use and it works splendidly. I&#8217;m willing to sell you a copy if you wish &#8211; contact me by email (altmany at gmail) if you are interested.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: John Smith		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-352640</link>

		<dc:creator><![CDATA[John Smith]]></dc:creator>
		<pubDate>Wed, 08 Jul 2015 01:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-352640</guid>

					<description><![CDATA[Hi, Yair,

Thank you very much for the info on your blog and book. They are very useful. 

I came to this &quot;syntax hilite&quot; blog because I was searching how to delete all comments in an M-file. Since Matlab recognizes comments, and it doesn&#039;t get confused by, for example, % comment text..., fprintf(&#039;%10.3f&#039;), or sprintf(&#039;%% comment&#039;), I want to utilize it and not reinvent the wheel like some existing file on the FileExchange. 

But the question is: where can I find that method and in which class? What is the syntax for that method?

If you already have posts regarding to this topic, could you show me that article?

Thank you very much!]]></description>
			<content:encoded><![CDATA[<p>Hi, Yair,</p>
<p>Thank you very much for the info on your blog and book. They are very useful. </p>
<p>I came to this &#8220;syntax hilite&#8221; blog because I was searching how to delete all comments in an M-file. Since Matlab recognizes comments, and it doesn&#8217;t get confused by, for example, % comment text&#8230;, fprintf(&#8216;%10.3f&#8217;), or sprintf(&#8216;%% comment&#8217;), I want to utilize it and not reinvent the wheel like some existing file on the FileExchange. </p>
<p>But the question is: where can I find that method and in which class? What is the syntax for that method?</p>
<p>If you already have posts regarding to this topic, could you show me that article?</p>
<p>Thank you very much!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Björn		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-344501</link>

		<dc:creator><![CDATA[Björn]]></dc:creator>
		<pubDate>Wed, 21 Jan 2015 07:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-344501</guid>

					<description><![CDATA[Hi Yair,
This is a great blog! I wouldn&#039;t be able to do much java programming without it.

The SyntaxTextPane and the possibility to add line numbers as you showed in a comment is great. Is it also possible to include the code folding capability of the Matlab editor in this textpane? I haven&#039;t been able to find any way of including a com.mathworks.widgets.text.fold.MWCodeFoldingSideBar which I think is the way to do it.
Your help is highly appreciated.

Björn]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,<br />
This is a great blog! I wouldn&#8217;t be able to do much java programming without it.</p>
<p>The SyntaxTextPane and the possibility to add line numbers as you showed in a comment is great. Is it also possible to include the code folding capability of the Matlab editor in this textpane? I haven&#8217;t been able to find any way of including a com.mathworks.widgets.text.fold.MWCodeFoldingSideBar which I think is the way to do it.<br />
Your help is highly appreciated.</p>
<p>Björn</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Yair Altman		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-331655</link>

		<dc:creator><![CDATA[Yair Altman]]></dc:creator>
		<pubDate>Mon, 15 Sep 2014 21:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-331655</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-331552&quot;&gt;Adam&lt;/a&gt;.

@Adam - &lt;pre lang=&#039;matlab&#039;&gt;jCodePane.setContentType(&#039;text/xml-MATLAB&#039;)&lt;/pre&gt;

The rest is as described in the main article above.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-331552">Adam</a>.</p>
<p>@Adam &#8211; </p>
<pre lang='matlab'>jCodePane.setContentType('text/xml-MATLAB')</pre>
<p>The rest is as described in the main article above.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Adam		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-331552</link>

		<dc:creator><![CDATA[Adam]]></dc:creator>
		<pubDate>Sun, 14 Sep 2014 02:00:11 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-331552</guid>

					<description><![CDATA[Hi Yair,

Thank you for this great article and the accompanying chapter in your book.  I&#039;ve enjoyed both thoroughly.  The SyntaxTextPane seems perfect for an application I&#039;m looking to write (a simple XML editor in MATLAB), but the only acceptable MIME-type as far I can tell is the MATLAB one.  Passing in the XML MIME type does not seem to have any effect and passing in the HTML MIME type throws a Class Cast Exception (or something similar).  I am on MATLAB R2013a. 

Are you aware of any syntax highlighting functionality for languages other than MATLAB within SyntaxTextPane?  If so, how can I activate that functionality?  If not, is there a way for me to write my own syntax highlighting rules and pass them into an instance of SyntaxTextPane?  Or, I noticed that the MATLAB Editor has rules for XML/HTML syntax highlighting... can I make use of that some how?

Thank you for your great work!]]></description>
			<content:encoded><![CDATA[<p>Hi Yair,</p>
<p>Thank you for this great article and the accompanying chapter in your book.  I&#8217;ve enjoyed both thoroughly.  The SyntaxTextPane seems perfect for an application I&#8217;m looking to write (a simple XML editor in MATLAB), but the only acceptable MIME-type as far I can tell is the MATLAB one.  Passing in the XML MIME type does not seem to have any effect and passing in the HTML MIME type throws a Class Cast Exception (or something similar).  I am on MATLAB R2013a. </p>
<p>Are you aware of any syntax highlighting functionality for languages other than MATLAB within SyntaxTextPane?  If so, how can I activate that functionality?  If not, is there a way for me to write my own syntax highlighting rules and pass them into an instance of SyntaxTextPane?  Or, I noticed that the MATLAB Editor has rules for XML/HTML syntax highlighting&#8230; can I make use of that some how?</p>
<p>Thank you for your great work!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Animated busy (spinning) icon &#124; Undocumented Matlab		</title>
		<link>https://undocumentedmatlab.com/articles/syntax-highlighted-labels-panels#comment-322789</link>

		<dc:creator><![CDATA[Animated busy (spinning) icon &#124; Undocumented Matlab]]></dc:creator>
		<pubDate>Fri, 18 Apr 2014 15:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://undocumentedmatlab.com/?p=1738#comment-322789</guid>

					<description><![CDATA[[...] how to use other internal components in Matlab&#8217;s com.mathworks.widgets package, including syntax-highlighted labels and text panes that can be embedded in our Matlab GUI.Have you used BusyAffordance or some other internal Matlab [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] how to use other internal components in Matlab&#8217;s com.mathworks.widgets package, including syntax-highlighted labels and text panes that can be embedded in our Matlab GUI.Have you used BusyAffordance or some other internal Matlab [&#8230;]</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
