<?xml version="1.0" encoding="windows-1252"?>
<node id="34682" title="Returning to Auto CODE tags" created="2000-09-29 20:12:04" updated="2005-08-10 16:06:26">
<type id="1036">
monkdiscuss</type>
<author id="7873">
swiftone</author>
<data>
<field name="doctext">
The prospect of auto-detecting when the user failed to insert CODE tags was discussed
at [Automatic CODE tags].  In particular, [Corion] came up with some basic test code 
[id://19270|here].  
&lt;p&gt;
Lately, there have been several posts that did not use the CODE tags.  While I'm all for educating
users, there will always be un-tagged posts as long as we have new users.  I (re)suggest the following:
&lt;ol&gt;
&lt;li&gt;Users have an "auto-correct CODE tags" option, which defaults to on.  This sets whether PM checks when you post.
&lt;li&gt;If your post contains no CODE tags, 
&lt;li&gt;AND you have the auto-correct option set, 
&lt;li&gt;AND your post contains more than 5 (?) semicolons (not a heavily used punctuation in non-code), then your entire post will be wrapped in CODE tags
&lt;li&gt;If the post is thus wrapped, "&lt;b&gt;CODE automatically wrapped, please use &amp;lt;CODE&amp;gt; &amp;lt;/CODE&amp;gt; tags in the future&lt;/b&gt; (See [Site How To] for info)" is added to the top of the post.
&lt;/ol&gt;
This looks fairly simple to add to the code base, doesn't effect advanced users, and tries to teach newbies, while making PM easier to navigate.
&lt;p&gt;
(We could alternatively use [Corions] code, but it looks to based too much on syntax, which will be highly variable with newbies.)</field>
</data>
</node>
