Drupal configuration tests
2006-08-01 20:44
Tagged
My home page website powered by Drupal cms. And this is node for testing my drupal configuration and different modules combinations.
Since java development is my professional job I want to have java code syntax highlighting support. This can help me to write some notes or articles with code examples.
Test 1. Code highlighting (java)
package org.embedchat.desktop;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.embedchat.desktop.client.Client;
import org.embedchat.desktop.gui.ChatGUI;
public class Main {
private final static Logger log = LoggerFactory.getLogger(Main.class);
public static void main(String[] args) {
StateModel model = new StateModel();
final ChatGUI gui = new ChatGUI(model);
final Client client = new Client(model);
model.addObserver(gui);
model.addObserver(client);
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
gui.createAndShowGUI();
}
});
log.debug("GUI started");
Thread thread2 = new Thread() {
public void run() {
client.connect();
}
};
thread2.setDaemon(true);
thread2.start();
log.debug("Client started");
}
}
»
- 3667 reads
- Russian
Code highlighting fix
Highlighting fully broken
Post new comment