mirror of
https://github.com/EiffelSoftware/eiffel-org.git
synced 2025-12-06 14:52:03 +01:00
Coding samples added.
Updated wikipage Writing Documentation Filters with EFF, the Eiffel Filter Format. (Signed-off-by:RTH10260). git-svn-id: https://svn.eiffel.com/eiffel-org/trunk@2319 abb3cda0-5349-4a8f-a601-0c33ac3a8c38
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
[[Property:link_title|Writing Filters with EFF]]
|
||||
[[Property:modification_date|Mon, 22 Feb 2021 12:13:07 GMT]]
|
||||
[[Property:modification_date|Mon, 22 Feb 2021 12:35:36 GMT]]
|
||||
[[Property:publication_date|Thu, 11 Feb 2021 07:55:20 GMT]]
|
||||
[[Property:title|Writing Documentation Filters with EFF, the Eiffel Filter Format]]
|
||||
[[Property:weight|6]]
|
||||
@@ -193,15 +193,17 @@ A multi-line entry uses the Eiffel convention for string continuations: <code>%<
|
||||
|
||||
==Sample page encoding==
|
||||
|
||||
We show sample code taken from existing filter files to demonstrate the basic structure for the skeleton needed for visual presentation.
|
||||
We show sample code taken from existing filter files to demonstrate the basic structure of the skeleton needed for visual presentation.
|
||||
|
||||
Note in both examples the position of the <code>*</code>place holder that will contain the expanded page body for the referenced construct.
|
||||
|
||||
=== HTML webpages===
|
||||
|
||||
To replace the <code>default.css</code> copied into your Documentation directory, to write your own stylesheet based on it and save under a different name. Important: chose a different name or EiffelStudio will overwrite it. Add any scripting files to the Documentation directory if required. Font choice is of course also a user option. Note the generated <code>goto.html</code> file (not a standalone webpage) that contains the navigation thru the generated webpages and is expected to be included by the page skeleton. Replace and add any required inclusion links into the <code>HEAD</code> section of the webpage.
|
||||
=== - webpages===
|
||||
|
||||
<code lang=text>
|
||||
To replace the <code>default.css</code> copied into your Documentation directory write your own stylesheet based on it and save under a different name. Important: chose a different name or EiffelStudio will overwrite it. Add any scripting files to the Documentation directory if required. Font choice is of course also a user option. Note the generated <code>goto.html</code> file (not a standalone webpage) that contains the navigation thru the generated webpages and is expected to be included by the page skeleton. Replace and add any required inclusion links into the <code>HEAD</code> section of the webpage.
|
||||
|
||||
|
||||
<code lang=html>
|
||||
class_declaration |%
|
||||
%<!DOCTYPE html>%N%
|
||||
%<html>%N%
|
||||
@@ -210,21 +212,23 @@ class_declaration |%
|
||||
%$html_meta$%
|
||||
%<meta name="viewport" content="width=device-width%, initial-scale=1.0">%N%
|
||||
%<link href="https://fonts.googleapis.com/css?family=PT+Sans" rel="stylesheet">%N%
|
||||
%<title>$title$<\/title>%N%
|
||||
%<title>$title$</title>%N%
|
||||
%<link rel="stylesheet" href="$root$default.css" type="text/css">%N%
|
||||
%<script type="text/javascript" src="$root$goto.html"><\/script>%N%
|
||||
%<\/head>%N%
|
||||
%<script type="text/javascript" src="$root$goto.html"></script>%N%
|
||||
%</head>%N%
|
||||
%<body>%N%
|
||||
%<pre>*</pre>%N%
|
||||
%<p style="text-align:center;">Generated by <a href="http://www.eiffel.com">ISE EiffelStudio<\/a><\/p>%N%
|
||||
%<\/body>%N%
|
||||
%<\/html>%N
|
||||
%<p style="text-align:center;">Generated by <a href="http://www.eiffel.com">ISE EiffelStudio</a></p>%N%
|
||||
%</body>%N%
|
||||
%</html>%N
|
||||
</code>
|
||||
|
||||
===for printing===
|
||||
|
||||
===- for printing===
|
||||
|
||||
Here a sample coding for RTF formatted output, to be run thru some comaptible word processor for pretty printing.
|
||||
|
||||
|
||||
<code lang=text>
|
||||
Cluster_declaration, Class_declaration |%
|
||||
%{\rtf1\ansi\ansicpg1252\deflang1033{\fonttbl{\f0\fscript\fcharset0 Courier;}}%
|
||||
|
||||
Reference in New Issue
Block a user