Click to See Complete Forum and Search --> : displaying code files


TheRealMVP
09-09-2004, 12:20 AM
I demonstrate my code by simply saving .html files as .txt, but this doesn't work when dealing with .aspx files - no matter the extension, the browser tries to execute them. How to acheive the same effect with converting every < and >? :confused: and :mad:

Thanks!

ray326
09-09-2004, 01:26 AM
Some editors can "HTMLize" the source they have loaded. Maybe this would be an option for your .aspx pages.

rsd
09-09-2004, 06:31 PM
There are HTML tags that where designed for this purpose...

<PRE><CODE>
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
</CODE></PRE>

Would this work for your examples?

TheRealMVP
09-10-2004, 05:31 PM
Pre and code don't work for this problem. Anyone know of specific editors which would do the trick?

ray326
09-10-2004, 08:59 PM
I think both jext and jedit have plugins that will do that.

fredmv
09-10-2004, 09:21 PM
How about something like SimpleCode (http://wootest.net/simplecode.htm)?

davidbrent
09-11-2004, 06:05 AM
Thats quite useful. Personally I have never had a problem using the standard PRE and CODE tags...