How to paste 100% FORMATTED Source Code In Your Forum Posts
How To Attach Source Code To Your Forum Posts
PHP Code:
Example #1: Messy Paste import javax.microedition.lcdui.*; public class HelloWorld extends MIDlet implements CommandListener { private Command exitCommand; private TextBox tbox; public HelloWorld() { exitCommand = new Command("Exit", Command.EXIT, 1); tbox = new TextBox("Hello world MIDlet", "Hello World!", 25, 0); tbox.addCommand(exitCommand); tbox.setCommandListener(this); } protected void startApp() { Display.getDisplay(this).setCurrent(tbox); } protected void pauseApp() {} protected void destroyApp(boolean bool) {} public void commandAction(Command cmd, Displayable disp) { if (cmd == exitCommand) { destroyApp(false); notifyDestroyed(); } } } Example #2: Correctly Done Paste PHP Code:
|
And how do we use colour in code ?
Can it be done automatically ? Can we use [code=java] -> Edit: no we cannot :) Edit: I will answer myself :idea: : use (y)"[php]" instead of (n)"[code]" - (and no, "[java]" unfortunately does not work :cry:) |
All times are GMT -5. The time now is 11:21 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.