Languages
 
 
 
 
Navigation
 
 
 
 
 
 

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Code highlighting fix

Code highlighting fixed.

Highlighting fully broken

Looks like code highlighting fully broken with my new custom drupal theme. This need to be fixed in future.

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>

More information about formatting options

 
 
 
 
 
 
  • hooligan
  • cupuyc
  • ESoImk
  • LeKz
  • Anton
 
 
 
© 2006-2008 kobyleha.com