Page 1 of 1

<qbasic> in the docs

PostPosted: Wed Jun 09, 2010 2:27 pm
Why the <qbasic> extension is used in the docs? The following code has been taken from the FUNCTION page:

<qbasic>FUNCTION Factorial(x AS Ulong) AS Ulong
    IF x < 2 THEN RETURN x: END IF
    RETURN Factorial(x - 1) * x

The extension highligths the code but also links the keywords to!

Re: <qbasic> in the docs

PostPosted: Wed Jun 09, 2010 3:06 pm
I've just searched for an example in Wikipedia. It uses the following extension:

<source lang="Qbasic">

It seems Mediawiki has several highlighting extensions: ... extensions

Anyone acquainted with the issue?

Re: <qbasic> in the docs

PostPosted: Wed Jun 09, 2010 5:37 pm
by britlion
Nope. I followed Boriel's examples - and went with a <qbasic> tag for code. Seems to come out rather small; but it does work.

How to tag stuff in there I honestly am not sure about as a style guide - I've just used other stuff as a template.

Re: <qbasic> in the docs

PostPosted: Wed Jun 09, 2010 9:37 pm
by boriel
There are both <freebasic> and <qbasic> tags, and both can be used. Surprisingly, <qbasic> looks fancier! :P :oops:
But I didn't realise it links to qbasic. If so, all those tags must be removed in favour of <freebasic>. Another alternative is to edit the syntax color scheme... but this will take a little more time.

Update: Confirmed! :? I'll remove any qbasic tag and use freebasic ones instead. Also will try to change the coloring scheme.

Re: <qbasic> in the docs

PostPosted: Mon Mar 14, 2011 12:01 am
by boriel
Update: Well, I think this has been previously discussed somewhere, but the right tag for the Wiki is <zxbasic> :wink: So, please, use it from now on.