Use a syntax block within your post. The format is:
[syntax=xxx] (paste your code here) [/syntax]
xxx is the language of your code fragment, as it would typically be represented in a FILE EXTENSION. Some common extensions that will trigger syntax coloring are below. Replacing xxx in the example above with php, for example, will syntax color a php code fragment.
javascript - Javascript java - Java perl - perl code php - php code h - c header file registry - Windows registry export fragment
For the full list of supported languages, please see this FAQ entry - What languages are supported in syntax blocks
Note: Syntax blocks can be edited after the post has been made Note: Syntax blocks will preview correctly. If they do not preview, they will not post correctly either. Note: Syntax blocks cannot be AUTO-QUOTED, and should not be quoted manually Note: The begin and end markers around a syntax block must be on their own lines and against the left margin
show feedback form
close
edited by howe81  last modified: 2005-07-20 19:22:30 |