fabien van mook

all packages "fvm-*"

package "fvm-xm"

file "test_xm_file.xm"

function test_xm_file;

printf([ <<<Here some multi-
line text. We are testing 
testing testing.>>> " (Some inserts) " <<<And 
we continue testing.>>> "\n"]);

s = [<<<Fill a variable with 
multiline text. Testing. Testing.
>>>];

printf("___%s___\n",s);

  %{ 
  
coments with unbalanced <<<

%}

% another comment with unbalanced <<<

s = [<<<
Fill the variable again
with multiline text. Testing. 
Testing. Including a percent %. 
Including a percent plus brace: %{ So? 
And let's also include quotes: 'hi 
there!' And we have also got double 
quotes: "well, well". 
Testing.
>>>];

printf("___%s___\n",s);
  
% another comment with balanced <<< bla bla >>>
% another comment with unbalanced <<<

% the next lines did not work with the earlier 
% version (prior to 2022-03-04) of multilinestring.m:
%
printf("___%s___\n",[<<<Hello,
Returning a value: >>> sprintf("%3.3f",1/3) <<< i.e.
the decimal form of a third.>>>]);

printf('___%s___\n',[<<<Hello,
Returning a value: >>> sprintf('"%3.3f"',1/3) <<< i.e.
the decimal form of a third.>>>]);

endfunction;