Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

1

Samstag, 11. März 2023, 00:46

Supported BBCode tags

Nothing fancy, but thought I would share: made a quick list of supported BBCode tags in krpano

These can be used with the Textfield like this:

Quellcode

1
<layer type="text" text="[b]bold[/b]">


Online example:
https://krpano.kri-soft.be/examples/bbcode/

Supported in 1.21:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
[b]Bold[/b]
[i]Italics[/i]
[u]Underline[/u]
[sup]Superscript[/sup]
[sub]Subscript[/sub]
[s]Strikethrough[/s]
Text before the break [br] text after the break
[h1]Header 1[/h1]
[h2]Header 1[/h2]
[h3]Header 1[/h3]
[ code ]This is some code.[ /code ]


Unsupported at the moment:

Quellcode

1
2
3
4
5
6
7
8
9
10
[color=#FF0000]Red text[/color]
[url]https://en.scratch-wiki.info/wiki/Scratch_Wiki[/url]
[url=https://en.scratch-wiki.info/wiki/Scratch_Wiki]Scratch Wiki[/url]
[img]http://en.scratch-wiki.info/images/Scratch_Cat.png[/img]
[quote]This is an anonymous quote[/quote]
[quote=A_Scratcher]I'm being quoted![/quote]
[size=large]Large[/size]
[list][*]listitem[/list]
[align=center]This text is centered.[/align]
[style size='30px']Large Text[/style]


If there are any missing, please let me know and I will add them.

2

Dienstag, 14. März 2023, 11:13

Hi,

there is actually no bbcode support, krpano only uses a bbcode-like 'encoding' to bypass the xml <> character limitations:

That means the '[' and ']' character are only converted to '<' and '>' and the resulting html code is used:

https://krpano.com/plugins/textfield/#text

Best regards,
Klaus

kme

Fortgeschrittener

  • »kme« ist der Autor dieses Themas

Beiträge: 310

Wohnort: Belgium

Beruf: Long time coder, product manager and 3D enthousiast

  • Nachricht senden

3

Dienstag, 14. März 2023, 22:49

Ahaaa, now it makes sense. So this excersise was not so useful, cause we can use colors, just not in the BBCode way *g*
Thanks for the clarification *cool* *cool*