Category:Code snippets: Difference between revisions
From GreaseSpot Wiki
Jump to navigationJump to search
m Included non verified good examples... usually the default when someone is posting here... users should probably verify on their current system. |
No edit summary |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
List of pages with code snippets. Browse around, you might learn something new. | List of pages with code snippets. Browse around, you might learn something new. | ||
<pre> | <pre class='sample-bad'> | ||
Code samples highlighted in red like this are bad ideas. | |||
Usually, this code does not work, and the sample is to point out _that_ this code does not work. | |||
</pre> | |||
<pre class='sample-good'> | |||
Code samples highlighted in green, however, _do_ work. | |||
They are usually presented beside the bad examples, as an idea what should be done instead. | |||
</pre> | |||
Latest revision as of 21:27, 3 February 2010
List of pages with code snippets. Browse around, you might learn something new.
Code samples highlighted in red like this are bad ideas. Usually, this code does not work, and the sample is to point out _that_ this code does not work.
Code samples highlighted in green, however, _do_ work. They are usually presented beside the bad examples, as an idea what should be done instead.
This category currently contains no pages or media.