Skip to content

Commit

Permalink
Type Modelica keywords in bold and remove trailing whitespaces ;-)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobolar committed Nov 6, 2023
1 parent 9c47980 commit e5e47bf
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions Modelica/package.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1244,25 +1244,28 @@ Long modifier lists shall be split into several indented lines with at most one
<p>
Full class definitions shall be separated by an empty line.
</p>

<h5>Example</h5>

<blockquote><pre>
<strong>package</strong> MyPackage
partial model BaseModel
parameter Real p;
input Real u(unit=\"m/s\");
protected
<strong>partial</strong> <strong>model</strong> BaseModel
<strong>parameter</strong> Real p;
<strong>input</strong> Real u(unit=\"m/s\");
<strong>protected</strong>
Real y;
Real x(
start=1,
unit=\"m\",
nominal=10);
equation
der(x) = u;
<strong>equation</strong>
<strong>der</strong>(x) = u;
y = 2*x;
end BaseModel;
<strong>end</strong> BaseModel;

model ModelP2
extends BaseModel(p=2);
end ModelP2;
<strong>model</strong> ModelP2
<strong>extends</strong> BaseModel(p=2);
<strong>end</strong> ModelP2;
<strong>end</strong> MyPackage;
</pre></blockquote>
</html>"));
Expand Down

0 comments on commit e5e47bf

Please sign in to comment.