Raw Code Download

From Scribus Wiki
Revision as of 03:30, 8 July 2011 by Malex (talk | contribs) (Created page with "This wiki is capable of letting users download raw code embedded into the pages. Please see [http://wiki.yobi.be/wiki/Mediawiki_RawFile] for more details, especially the examples...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This wiki is capable of letting users download raw code embedded into the pages. Please see [1] for more details, especially the examples at [2].

In short, use either <code></code> tags around your code snippets or for more power use the specially designed {{#fileanchor: myotherscript.sh}} and {{#filelink: myotherscript.sh}} templates as shown in the long example.

Here is a working example taken from [3]


Save the following code [{{#file: cmdtext.cpp}} as cmdtext.cpp]


/*! docstring */
PyDoc_STRVAR
(scribus_repeattext__doc__,
QT_TR_NOOP("repeatText(n, [\"name\"])\n\
\n\
Repeat the text of the text frame \"name\" n times.\n\
If \"name\" is not given the currently selected item is used.\n\"
));
/*! Repeat text */
PyObject * scribus_repeattext(PyObject * /*self*/, PyObject * args);