Shlomi Fish avatar Shlomi Fish committed a8b7a5b

Convert all <tt> to <code> or whatever.

Comments (0)

Files changed (1)

lib/XML-Grammar-Vered/bad-elements-to-xml.wml

 <item id="dot_asterisk" h="Regular Expressions starting or ending with “.*”">
 
 <p>
-It is not necessary to put <tt>.*</tt> or <tt>.*?</tt> into the beginning or
+It is not necessary to put <code>.*</code> or <code>.*?</code> into the beginning or
 end of regular
 expressions to match something anywhere inside the string. So for example
-<tt>if ($hay_stack =~ /.*ab+c.*/)</tt> can be replaced with the simpler:
-<tt>if ($hay_stack =~ /ab+c/)</tt>. If you wish to match and extract the
-prefix, you should say <tt>(.*?)</tt> or <tt>(.*)</tt>.
+<code>if ($hay_stack =~ /.*ab+c.*/)</code> can be replaced with the simpler:
+<code>if ($hay_stack =~ /ab+c/)</code>. If you wish to match and extract the
+prefix, you should say <code>(.*?)</code> or <code>(.*)</code>.
 </p>
 
 </item>
 
 <p>
 It is not a good idea to append a trailing if statement modifier to a
-declaration of a lexical variable using <tt>my</tt>:
+declaration of a lexical variable using <code>my</code>:
 </p>
 
 <bad_code>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.