Oznámení

Provoz fóra byl ukončen

Superscript

před 12 lety

markus
Člen | 11

Hello! Excuse me my English, I don't speak Czech, cuz I am from Ukraine…

How can i write something in superscript? I want to see the following output:

W<sup>t</sup>

So i try to type:

W^t

But the output unexpectively looks the same as the input:

W^t

W^t doesn't work but W2 works… Why so??

Editoval markus (1. 10. 2007 14:21)

před 12 lety

skocourek
Generous Backer | 180

Because W^t is working only if ‚t‘ is a number. If you want to write a superscript, you have to switch on this syntax using this

$texyc->allowed['phrase/sup'] = true;

(because I think, this option is switched off by default) and syntax is W^^t^^.

před 12 lety

markus
Člen | 11

skocourek psal:

Because W^t is working only if ‚t‘ is a number. If you want to write a superscript, you have to switch on this syntax using this

$texyc->allowed['phrase/sup'] = true;

(because I think, this option is switched off by default) and syntax is W^^t^^.

Thanks a lot!
It really works! Where can I find an API documentation (in order to solve the similar problems…)

And 1 more question. Is there a souce code for visual editor (like the one on this forum)?

před 12 lety

David Grudl
Nette Core | 6806

Visual editor is Texyla