Skip to content

Instantly share code, notes, and snippets.

@thorade
Last active October 20, 2015 12:48
Show Gist options
  • Save thorade/89b9cf61c52d547d918a to your computer and use it in GitHub Desktop.
Save thorade/89b9cf61c52d547d918a to your computer and use it in GitHub Desktop.
syntax highlight: string versus description
within ;
function printString "this function can print strings"
import Modelica.Utilities.Streams.print;
// just a comment
input String foo="some text" "foo doc-string";
input Real bar=21 "bar doc-string";
protected
Real baz=21 "baz doc-string";
algorithm
print(myString + " " + String(bar+baz));
annotation (uses(Modelica(version="3.2.1")));
end printString;
@thorade
Copy link
Author

thorade commented May 21, 2015

Compare color of string versus description string. Same color or different?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment