<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Keil: Code detection in posts</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/37443/keil-code-detection-in-posts</link><description> 
How about adding a little filter that scans for the use of braces
or nested parentheses in peoples post and very explicitly complains
if matching posts does not contain the required formatting tags. 

 
A huge majority of new posters are clearly completely</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Keil: Code detection in posts</title><link>https://community.arm.com/thread/124094?ContentTypeID=1</link><pubDate>Tue, 18 Sep 2007 01:06:47 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:70019e8b-6801-42ad-85c9-539290187f93</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
Too bad the two who have &amp;quot;corrected&amp;quot; their posts after seeing the
picture did the &amp;quot;correcting&amp;quot; by copying/pasting the already munged
code, instead of copying the code from their original source
file.&lt;/p&gt;

&lt;p&gt;
Even with a preview function they totally failed to notice that
instructions followed after end-of-line comments...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil: Code detection in posts</title><link>https://community.arm.com/thread/113200?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2007 17:25:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:883a4f81-d056-4f86-b300-5b27cf671de4</guid><dc:creator>Dan Henry</dc:creator><description>&lt;p&gt;&lt;p&gt;
A pity I couldn&amp;#39;t have gotten it right the first time.&lt;/p&gt;

&lt;p&gt;
It&amp;#39;s corrected now.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil: Code detection in posts</title><link>https://community.arm.com/thread/99660?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2007 15:58:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:0b62b3e8-bad1-4641-b676-045dc3128145</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
better complete that closing angle-bracket, then...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil: Code detection in posts</title><link>https://community.arm.com/thread/88535?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2007 15:43:22 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7b0b45b5-ba44-420a-820b-f223af17c468</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have a feeling your web server is going to have to send out a
lot of copies of that image :)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil: Code detection in posts</title><link>https://community.arm.com/thread/99667?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2007 11:33:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9589b61c-0806-4a57-ac83-e1ef1b91fea4</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
No, it would not be possible to automatically insert the tags. It
is too hard to detect the switch between running text and code
blocks. But since the Keil tools only supports assembler, C and C++
to my knowledge - and most problems are with C/C++ code - it should
be quite easy for a trivial code piece to make an educated guess if
the post contains C/C++ code or not. That would probably be
enough.&lt;/p&gt;

&lt;p&gt;
Extending the concept to detect C51 assembly should also be quite
easy. It would probably be enough to check if several lines starts
with white space followed by one of a couple of common mnemonics.&lt;/p&gt;

&lt;p&gt;
But it wouldn&amp;#39;t need to be perfect. It would be enough if the
filter could catch 80% of all incorrect posts.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil: Code detection in posts</title><link>https://community.arm.com/thread/88538?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2007 11:19:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c33b0ebf-646c-49ec-a506-7b72993fa59b</guid><dc:creator>Drew Davis</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have a bad habit of using parenthetical comments (which often
seem to be frowned upon by English style guides (but then, those
authors aren&amp;#39;t programmers, are they?)) I guess programmers aren&amp;#39;t
quite as bothered by popping up levels as are most people.&lt;/p&gt;

&lt;p&gt;
But it seems like a good idea. It&amp;#39;s probably hard to automatically
insert the tags in the right place, but at least a Clippy-style &amp;quot;It
looks like you inserted code in your post, but there are no &amp;quot;pre&amp;quot;
tags&amp;quot; warning box might well help.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keil: Code detection in posts</title><link>https://community.arm.com/thread/48600?ContentTypeID=1</link><pubDate>Mon, 17 Sep 2007 11:12:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c38dd3f0-34a9-46cd-8246-4f5b817d9782</guid><dc:creator>Dan Henry</dc:creator><description>&lt;p&gt;&lt;p&gt;
Perhaps a picture would help.&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.danlhenry.com/caps/keil_code.png"&gt;www.danlhenry.com/.../keil_code.png&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>