Use of CODE tags

Discussion in 'Programmer's Corner' started by bertus, Apr 10, 2010.

Thread Status:
Not open for further replies.
  1. bertus

    Thread Starter Administrator

    Apr 5, 2008
    15,648
    2,346
    Hello,

    When posting program code it is good to place the code tags around it.
    This way the code is better readable.

    Code

    The
    Code ( (Unknown Language)):
    1.  tags switches to a fixed-width (monospace) font and preserves all spacing.
    2.  
    3. [plain]
    4. Usage                           [code=rich]value[/code]
    5.  
    6. Example Usage               :
    7.  
    8. [code=rich]
    9. <script type="text/javascript">
    10. <!--
    11. alert("Hello world");
    12.                                   //--!>
    13.                                   </script>
    14.                                   [/code]
    15. [/plain]
    16.  
    17. Example Output:
    18.  
    19. [code=rich]
    20. [COLOR=Black]<script type="text/javascript">
    21. <!--
    22. alert("Hello world");
    23. //--!>
    24. </script>[/COLOR]
    25. [/code]Bertus
     
    Last edited: Oct 28, 2010
Loading...
Thread Status:
Not open for further replies.