Developer's guide: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
Test for syntax highlighting | Test for syntax highlighting | ||
This is PHP: | This is PHP using syntaxhighlight: | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
<?php | <?php | ||
Line 14: | Line 14: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
This is | This is PHP using pre: | ||
< | <pre style="border: 1px solid LightGray"> | ||
x = findgen(100)/10 | x = findgen(100)/10 | ||
y = sin(x)/x | y = sin(x)/x | ||
plot,x,y | plot,x,y | ||
</pre> | |||
This is IDL using source lang="idl": | |||
<source lang="idl"> | |||
;OUTPUT: | ;OUTPUT: | ||
Line 29: | Line 31: | ||
compile_opt idl2, hidden | compile_opt idl2, hidden | ||
x = findgen(100)/10 | |||
y = sin(x)/x | |||
plot,x,y | |||
MB = 2L^20 ; one megabyte | MB = 2L^20 ; one megabyte |
Revision as of 01:31, 11 February 2014
Stub for page for the Developer's 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>
This is PHP using pre:
x = findgen(100)/10 y = sin(x)/x plot,x,y
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>
<syntaxhighlight lang="-"></syntaxhighlight>