gecko/parser/htmlparser/tests/html/xmp005.html

48 lines
753 B
HTML
Raw Normal View History

<html>
<body>
use a XMP tag for C or JAVA source code.
<br> The lt and gt signes are problematic.
<XMP>
cc = 123;
// test lt
if( cc < hhh ) {
if(cc<xxx || as > gh) {
//do womthing here;
}
}
if( cc <= iii ) {
if(cc<=yyy) {
//do womthing here;
}
}
// test gt
if( cc > rrr ) {
if(cc>eee) {
//do womthing here;
}
}
if( cc >= www ) {
if(cc>=qqq) {
//do womthing here;
}
}
// what if the variable name is a valid tag name.
if( cc < B && cc > kk ) {
if(cc<B && cc > gg) {
//do womthing here;
}
}
cc = aa<<I;
cc = B>>3;
gt = true;
for(a=0,gt=true; (a>0)&&gt; a++) {
}
a = 0x0004;
lt = 0x0002;
for(; a&lt; ) {
}
</XMP>
</body>
</html>