diff --git a/css/lang-eiffel.css b/css/lang-eiffel.css new file mode 100644 index 00000000..b43e0dbe --- /dev/null +++ b/css/lang-eiffel.css @@ -0,0 +1,62 @@ +/* EiffelStudio html documentation css ported to google prettify */ +/* Pretty printing styles. Used with prettify.js. */ + +/* SPAN elements with the classes below are added by prettyprint. */ +.pln { color: #000 } /* plain text */ + +@media screen { + .str { color: #080 } /* string content */ + .kwd { color: #008; font-weight: bold } /* a keyword */ + .com { color: #800 } /* a comment */ + .typ { color: #606 } /* a type name */ + .lit { color: #066 } /* a literal value */ + + /* Eiffel specific */ + + .atg { color: #0aa } /* assertion tag */ + .fcl { color: darkgreen; font-style: italic;} /* feature call */ + + /* punctuation, lisp open bracket, lisp close bracket */ + .pun, .opn, .clo { color: #660 } + + + .tag { color: #008 } /* a markup tag name */ + .atn { color: #606 } /* a markup attribute name */ + .atv { color: #080 } /* a markup attribute value */ + .dec, .var { color: #606 } /* a declaration; a variable name */ + .fun { color: red } /* a function name */ +} + +/* Use higher contrast and text-weight for printable form. */ +@media print, projection { + .str { color: #060 } + .kwd { color: #006; font-weight: bold } + .com { color: #600; font-style: italic } + .typ { color: #404; font-weight: bold } + .lit { color: #044 } + .pun, .opn, .clo { color: #440 } + .tag { color: #006; font-weight: bold } + .atn { color: #404 } + .atv { color: #060 } +} + + +/* Put a border around prettyprinted code snippets. */ +pre.prettyprint { padding: 2px; border: 1px solid #888 } + +/* Specify class=linenums on a pre to get line numbering */ +ol.linenums { margin-top: 0; margin-bottom: 0 } /* IE indents via margin-left */ +/*li.L0, +li.L1, +li.L2, +li.L3, +li.L5, +li.L6, +li.L7, +li.L8 { list-style-type: none }*/ +/* Alternate shading for lines */ +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { background: #eee } diff --git a/getting-started.html b/getting-started.html index d92ae97e..0d6ce08b 100644 --- a/getting-started.html +++ b/getting-started.html @@ -7,6 +7,7 @@ +
The hello world example is located in the directory $ISE_EIFFEL/contrib/examples/web/ewf/simple. Just double click on the simple.ecf file and select the simple target or if you prefer the command line, run the command:
estudio -config simple.ecf -target simple
- Once the project is compiled, you can launch it and point your browser to http://localhost:9090. +
Once the project is compiled, we will adapt the root class to point to port number 9090.
+To do this, we will redefine the feature initialize as follows:
+
+class
+ APPLICATION
+
+inherit
+ WSF_DEFAULT_SERVICE
+ redefine
+ initialize
+ end
+
+create
+ make_and_launch
+
+feature {NONE} -- Initialization
+
+ initialize
+ -- Initialize current service
+ do
+ set_service_option ("port", 9090)
+ end
+
+ After one more compile, you can now launch the application and point your browser to http://localhost:9090. You should now see a simple page with Hello World.