Test-Source: Porovnání verzí
Z Milan Kerslager
(= Nadpis =) |
m (Stránka Test přemístěna na stránku Test-Source) |
||
(Není zobrazeno 6 mezilehlých verzí od stejného uživatele.) | |||
Řádka 1: | Řádka 1: | ||
− | + | Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. | |
− | + | == BUG (with Firefox): There should be a box with colored source == | |
+ | |||
+ | === With no enclose parameter === | ||
+ | <source lang="C"> | ||
+ | #include <stdio.h> | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | printf("Hello world!\n"); | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | === Trying with enclose=div === | ||
+ | <source lang="C" enclose=div> | ||
+ | #include <stdio.h> | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | printf("Hello world!\n"); | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | === Trying with enclose=pre === | ||
+ | <source lang="C" enclose=pre> | ||
+ | #include <stdio.h> | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | printf("Hello world!\n"); | ||
+ | } | ||
+ | </source> | ||
+ | |||
+ | == And there should be normal pre-formatted source == | ||
+ | |||
+ | #include <stdio.h> | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | printf("Hello world!\n"); | ||
+ | } |
Aktuální verze z 13. 1. 2010, 05:23
Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text. Normal text.
Obsah
BUG (with Firefox): There should be a box with colored source
With no enclose parameter
#include <stdio.h>
int main()
{
printf("Hello world!\n");
}
Trying with enclose=div
#include <stdio.h>
int main()
{
printf("Hello world!\n");
}
Trying with enclose=pre
#include <stdio.h>
int main()
{
printf("Hello world!\n");
}
And there should be normal pre-formatted source
#include <stdio.h> int main() { printf("Hello world!\n"); }