|  |     | 
| (11 intermediate revisions by one other user not shown) | 
| Line 1: | Line 1: | 
|  | Stub for page for the Developer's Guide.
 |  | #REDIRECT [[SPEDAS_Developer%27s_Guide]] | 
|  |   |  | 
|  | Test for syntax highlighting.
 |  | 
|  |   |  | 
|  |   |  | 
|  | This is PHP using syntaxhighlight:
 |  | 
|  | <syntaxhighlight lang="php">
 |  | 
|  | <?php
 |  | 
|  |     $v = "string";    // sample initialization
 |  | 
|  | ?>
 |  | 
|  | html text
 |  | 
|  | <?
 |  | 
|  |     echo $v;         // end of php code
 |  | 
|  | ?>
 |  | 
|  | </syntaxhighlight>
 |  | 
|  |   |  | 
|  | IDL is not supported with syntaxhighlight.
 |  | 
|  |   |  | 
|  | This is IDL using syntaxhighlight lang="lisp"
 |  | 
|  | <syntaxhighlight lang="lisp">
 |  | 
|  |   |  | 
|  | ;OUTPUT:
 |  | 
|  | ; Size of largest contiguous memory block available to IDL in megabytes.
 |  | 
|  | ; 
 |  | 
|  | ;-
 |  | 
|  |   |  | 
|  | function get_max_memblock
 |  | 
|  |   |  | 
|  | compile_opt idl2, hidden
 |  | 
|  |   |  | 
|  |  x = findgen(100)/10
 |  | 
|  |  y = sin(x)/x
 |  | 
|  |  plot,x,y
 |  | 
|  |   |  | 
|  | MB = 2L^20  ; one megabyte
 |  | 
|  | cblockSize = MB * 2047  ; two gigabytes
 |  | 
|  | end
 |  | 
|  | </syntaxhighlight>
 |  | 
|  |   |  | 
|  | This is IDL using syntaxhighlight lang="pascal"
 |  | 
|  | <syntaxhighlight lang="pascal">
 |  | 
|  |   |  | 
|  | ;OUTPUT:
 |  | 
|  | ; Size of largest contiguous memory block available to IDL in megabytes.
 |  | 
|  | ; 
 |  | 
|  | ;-
 |  | 
|  |   |  | 
|  | function get_max_memblock
 |  | 
|  |   |  | 
|  | compile_opt idl2, hidden
 |  | 
|  |   |  | 
|  |  x = findgen(100)/10
 |  | 
|  |  y = sin(x)/x
 |  | 
|  |  plot,x,y
 |  | 
|  |   |  | 
|  | MB = 2L^20  ; one megabyte
 |  | 
|  | cblockSize = MB * 2047  ; two gigabytes
 |  | 
|  | end
 |  | 
|  | </syntaxhighlight>
 |  | 
|  | This is IDL using pre:
 |  | 
|  | <pre style="border: 1px solid LightGray">
 |  | 
|  |  x = findgen(100)/10
 |  | 
|  |  y = sin(x)/x
 |  | 
|  |  plot,x,y
 |  | 
|  | </pre>
 |  | 
|  |   |  | 
|  |   |  | 
|  | This is IDL using source lang="idl":
 |  | 
|  | <source lang="idl">
 |  | 
|  |   |  | 
|  | ;OUTPUT:
 |  | 
|  | ; Size of largest contiguous memory block available to IDL in megabytes.
 |  | 
|  | ; 
 |  | 
|  | ;-
 |  | 
|  |   |  | 
|  | function get_max_memblock
 |  | 
|  |   |  | 
|  | compile_opt idl2, hidden
 |  | 
|  |   |  | 
|  |  x = findgen(100)/10
 |  | 
|  |  y = sin(x)/x
 |  | 
|  |  plot,x,y
 |  | 
|  |   |  | 
|  | MB = 2L^20  ; one megabyte
 |  | 
|  | cblockSize = MB * 2047  ; two gigabytes
 |  | 
|  | end
 |  | 
|  | </source>
 |  | 
|  |   |  | 
|  | This is syntaxhighlight lang="-":
 |  | 
|  | <syntaxhighlight lang="-"></syntaxhighlight>
 |  |