FAQ  •  Register  •  Login

<qbasic> in the docs

<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Wed Jun 09, 2010 2:27 pm

<qbasic> in the docs

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!
Last edited by programandala.net on Wed Jun 09, 2010 3:07 pm, edited 1 time in total.
<<

programandala.net

Posts: 98

Joined: Fri Apr 09, 2010 12:50 am

Location: España/Hispanujo/Spain

Post Wed Jun 09, 2010 3:06 pm

Re: <qbasic> in the docs

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: ... extensions

Anyone acquainted with the issue?
Last edited by programandala.net on Wed Jun 09, 2010 5:50 pm, edited 1 time in total.
<<

britlion

Posts: 766

Joined: Mon Apr 27, 2009 7:26 pm

Location: Slough, Berkshire, UK

Post Wed Jun 09, 2010 5:37 pm

Re: <qbasic> in the docs

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.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Wed Jun 09, 2010 9:37 pm

Re: <qbasic> in the docs

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.
<<

boriel

Site Admin

Posts: 1463

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Mon Mar 14, 2011 12:01 am

Re: <qbasic> in the docs

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.

Return to Documentation

Who is online

Users browsing this forum: Bing [Bot] and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO