Page 1 of 1

Autolinks for Hollywood forums

Posted: Wed Jun 24, 2020 5:42 pm
by admin
The Hollywood forums have a cool new feature now: All Hollywood commands, preprocessor commands, plugin commands, methods, and MUI Royale and RapaGUI attributes will now automatically show a link to the respective page in the documentation. You no longer have to insert links to the documentation manually. The Hollywood forums will take care of that automatically. Over 2500 entries are in the database.

Here are some tests:

You can use OpenDisplay() to do what you want.

The @BRUSH preprocessor command is your friend.

You can change the text of a textentry widget in RapaGUI by setting Textentry.Text.

gl.TexImage2D() is the function to use for hardware-accelerated drawing with GL Galore.

Have you seen easy:Perform()? It can be used to start transfers with hURL.

Use pdf.OpenDocument() to open a PDF document with Polybios.

This is RapaGUI's Window.Title attribute and this is MUI Royale's Window.Title.

A few notes:

1) For commands and methods it's mandatory to add "()" behind the name. Otherwise it won't get a link so you should write LoadBrush() and not LoadBrush.

2) RapaGUI and MUI Royale attributes and methods that have the same name need to be prefixed with either "MUIRoyale." or "RapaGUI.". Otherwise the autolink script won't be able to tell which plugin you are referring to. This is only needed for ambiguous attribute and method names. All unique attribute and method names needn't use the prefix but it's possible to specify it as well, e.g. RapaGUI's Choice.Active is the same as MUI Royale's Cycle.Active.

3) The links are only shown when making the final post. When previewing the post, the links won't be shown.

4) The autolink script will automatically adapt the spelling to the canonical one, e.g. if you write a function name in all lower case, the autolink script will automatically adapt the spelling to the canonical one.

That's it, enjoy the new feature!

Re: Autolinks for Hollywood forums

Posted: Thu Jun 25, 2020 12:31 am
by SamuraiCrow
Excellent!

Re: Autolinks for Hollywood forums

Posted: Thu Jun 25, 2020 7:40 am
by jPV
*air-guitaring*

Re: Autolinks for Hollywood forums

Posted: Thu Jun 25, 2020 9:58 am
by PEB
Yeah, I guess it's alright; though we might have some problems when someone named DISPLAY or REQUIRE or VERSION join the forums.

Here are some tests:

@DISPLAY welcome to the forums!

@REQUIRE that's a great question, but you should include a short sample of your code.

@VERSION I think you'll find your answer in the documentation found here: @VERSION

. . .

But seriously, very cool new feature! Thanks, Andreas.

Re: Autolinks for Hollywood forums

Posted: Thu Jun 25, 2020 8:46 pm
by airsoftsoftwair
Btw, the autolink will also automatically adapt the spelling of the function/method/attribute name to the canonical one which is another useful feature :)

And ambiguous attribute and method names are also recognized now. You have to prefix those with either "MUIRoyale." or "RapaGUI." to tell the autolink script which plugin you are referring to. Example:

RapaGUI: see Window.Title
MUI Royale: see Window.Title

I have also adapted the original posting to contain this new information.

Re: Autolinks for Hollywood forums

Posted: Sun Jun 28, 2020 8:59 pm
by airsoftsoftwair
Btw, with the new autolink feature it's even more important to encapsulate your code in [code] ... [/code] blocks. Otherwise autolinks might highlight parts of your code which will look a little strange, see here: viewtopic.php?f=21&t=2366

All code that is encapsulated inside [code] ... [/code] will be ignored by autolinks so that's what should be done.

Re: Autolinks for Hollywood forums

Posted: Fri Jul 03, 2020 11:50 pm
by Clyde
Very neat and handy feature; thanks!

Re: Autolinks for Hollywood forums

Posted: Thu Oct 08, 2020 12:22 am
by airsoftsoftwair
Autolinks also recognizes the acronym MCVE now!