写日志时怎么格式化代码

能不能够语法高亮显示。
显示成下面这个样子(类似于eclipse的样子):

发件人 snapshoot

使用wp-syntax来标记:
http://www.c2cer.com/20081128/wp-syntax-plugins-code/
参考这来实现一键插入:
编辑:\wp-includes\js\quicktags.js

发件人 snapshoot

代码中加入:

发件人 snapshoot

package com.qisda.weather;
import android.app.Activity;
import android.os.Bundle;
import android.view.*;
import android.view.View.OnFocusChangeListener;
import android.view.View.OnTouchListener;
import android.widget.ImageView;

public class weatherUI extends Activity implements OnTouchListener {
/** Called when the activity 

Android ImageView用法

详见:http://gentoo-pjq.vicp.net/bbs/viewtopic.php?f=8&t=85&p=100&sid=f1b441b45cf00aaa9b3c88e74fc45902#p100

代码可以到这里下载:http://github.com/pjq/weatherUI/tree/master
用git clone:

代码:
git clone git@github.com:pjq/weatherUI.git

要做一个weather report 的UI。
用Droiddraw画了一个UI。
写了一些测试代码,当点到一张图片的时候,并将这张图片显示出来。
这里要注意这一段:

代码:
public boolean onTouch(View v, MotionEvent event) {
ImageView imageview = (ImageView)findViewById(v.getId());
imageview.setBackgroundDrawable(v.getBackground());

按理说不应该再重新设置背景了,但很奇怪的是,当第一次点到一张图片时,会将这张点到的图片放到,所以在那么小的ImageView里就会显示不全,而只显示放大后的图片的一部分。
——后来又试了一下,好像又没问题,奇怪!!!

pjq@localhost ~/eclipse/workspace/weatherUI/src/com/qisda/weather $ cat weatherUI.java
package com.qisda.weather;

import android.app.Activity;
import android.os.Bundle;