Forum
<qbasic> in the docs - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Documentation (https://www.boriel.com/forum/forumdisplay.php?fid=17)
+---- Thread: <qbasic> in the docs (/showthread.php?tid=240)



<qbasic> in the docs - programandala.net - 06-09-2010

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


Re: <qbasic> in the docs - programandala.net - 06-09-2010

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:Syntax_highlighting_extensions

Anyone acquainted with the issue?


Re: <qbasic> in the docs - britlion - 06-09-2010

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 - boriel - 06-09-2010

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.


Re: <qbasic> in the docs - boriel - 03-14-2011

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.