Navigation
 
 
 
 
Languages
 
 

Drupal configuration tests

  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");
	}
}

Code highlighting fix

Code highlighting fixed.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Syntax highlight code surrounded by the {syntaxhighlighter OPTIONS}...{/syntaxhighlighter} tags.

More information about formatting options

CAPTCHA
Are You Human?
 
 
 
 
 
 
  • emmie
  • hooligan
  • cupuyc
  • ESoImk
  • LeKz
 
 
 
© 2006-2009 kobyleha.com