Difference between revisions of "Help:Contribute"

Jump to: navigation, search
(Explain <tt>)
(The <tt> tag)
Line 6: Line 6:
  
  
=== The &lt;tt> tag ===
+
=== Pretty gray formatting  ===
The &lt;code> tag gives an ugly kind of yellow, probably you will like the look of KDE's <tt><tt></tt> better.  However since it is intended to be a multi-purpose tag, the syntax is a bit finicky.  When &lt;tt> is used inline, it produces monospaced formatting <tt>like this</tt>. The same effect will happen when &lt;tt> starts a new line. To get a pleasant grey background like &lt;code>, place &lt;tt> in a new line with a space in front of it. You can view the source to see how this works.
+
The &lt;code> tag gives an ugly kind of yellow. To get a pleasant grey background, start a new line with a space in front of it. You can view the source to see how this works.
  
 
  <tt>myCodeSnippet();</tt>
 
  <tt>myCodeSnippet();</tt>

Revision as of 23:09, 23 October 2015

You may find the following resources helpful:


Pretty gray formatting

The <code> tag gives an ugly kind of yellow. To get a pleasant grey background, start a new line with a space in front of it. You can view the source to see how this works.

myCodeSnippet();

Content is available under Creative Commons License SA 4.0 unless otherwise noted.