gecko-dev/parser/htmlparser/tests/html/pre005.html

53 строки
838 B
HTML

<html>
<body>
use a PRE tag for C or JAVA source code.
<br> The lt and gt signes are problematic.
<PRE>
cc = 123;
// test lt
if( cc < hhh ) {
if(cc<xxx || as > gh) {
//do womthing here;
}
}
if( cc <= iii ) {
if(cc<=yyy) {
if(cc<-yyy) {
if(cc<+yyy) {
if(cc<3) {
if(cc<33) {
if(cc<_abc) {
//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; ) {
}
</PRE>
</body>
</html>