1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
// Single Line Comment
dt = open( "$sample_data\big class.jmp" );
dt << Distribution( Column( :age ), Histograms Only( 1 ) );
/*
Multi-line comment
*/
/* Single line block comment */
/*
Nested
/*
Comments
*/
Work
*/
escapeSequence = "This is an \!b escaped sequence";
escapeQuote = "This is a \!" quotation mark";
escapeStr = "\[This is """"""" an escaped string]\"
list = List( 1, 3, 5 );
alsoAList = {7,9,11};
index = 1::10::2;
a name with spaces = 5;
"a-name!with\!"special\characters"n = 5;
::globalVar = 1;
here:scopedVar = 2;
scientificNotation = 5e9;
decimal = 1.234;
missing = .;
date = 01jan00;
dateTime = 12dec1999:12:30:00.45;
New Window( "Rouge Test",
tb = Text Box( "Syntax highlighting is great!" )
);
If(tb << Get Text != "", "I'm still formatted correctly!");
New Namespace("rouge");
rouge:scoped.func = function({x, y}, x + y);
rouge:scoped.func(1, 2);
|