Raw Code Download

From Scribus Wiki
Revision as of 04:31, 8 July 2011 by Malex (Talk | contribs)

Jump to: navigation, search

This wiki is capable of letting users download raw code embedded into the pages. Please see Mediawiki_RawFile for more details, especially the examples at the Examples page.

In short, use either <pre></pre> 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 graphicslab.org

Save the following code as cmdtext.cpp

/*! docstring */
QT_TR_NOOP("repeatText(n, [\"name\"])\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);