Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
<qbasic> in the docs
#1
Why the <qbasic> extension is used in the docs? The following code has been taken from the FUNCTION page:

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

The extension highligths the code but also links the keywords to http://www.qbasicnews.com
Reply
#2
I've just searched for an example in Wikipedia. It uses the following extension:

Code:
<source lang="Qbasic">
...
</source>

It seems Mediawiki has several highlighting extensions:
http://www.mediawiki.org/wiki/Category:S...extensions

Anyone acquainted with the issue?
Reply
#3
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.
Reply
#4
There are both <freebasic> and <qbasic> tags, and both can be used. Surprisingly, <qbasic> looks fancier! Tongue :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.
Reply
#5
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)