Loading...
 
Skip to main content

Features / Usability


probelm with PASTE code in editor

We have wiki for programming study forum.

But when I post C/C++'s source code (as below) in Forum editor, it's truncted at the line as '*'-marked, but here everything works, why?

char *getxs(char *dest)
{
int c;
int even = 1; /* Have read even number of digits */
int otherd = 0; /* Other hex digit of pair */
char *sp = dest;
while c = getchar( != EOF && c != '\n') {
if c {
int val;
if ('0' <= c && c <= '9') --- * '0' followed contents disappear at my Wiki
val = c - '0';
else if ('A' <= c && c <= 'F')
val = c - 'A' + 10;
else
val = c - 'a' + 10;
if (even) {
otherd = val;
even = 0;
} else {
*sp++ = otherd * 16 + val;
even = 1;
}
}
// ALL these section is disappear in my wiki


Depending on the tikwiki version, they may have wiki parsing error.
Did you use the wiki tag np or the plugin code around your code
sylvie

thanks.

> Depending on the tikwiki version, they may have wiki parsing error.
> Did you use the wiki tag np or the plugin code around your code
Q: What's the meaning of "tag np"(especail 'np'?)

> sylvie


> Q: What's the meaning of "tag np"(especail 'np'?)
>

no parse

> Depending on the tikwiki version, they may have wiki parsing error.
> Did you use the wiki tag np or the plugin code around your code
> sylvie

my WIKI version is: This is Tiki v1.8.6 -Polaris- © 2002–2005 by the Tiki community Tue 06 of Dec, 2005 22:12 // debug

the best is to try in a page with a preview the same source on this site

Effectively, seems to be a bug in 1.8
You can delete my post on your forum
The same text is doing fine in 1.9.2