《新增代码着色器》-你好Blog--公告|你好Blog
你好Blog-你好Blog--公告

你好Blog--公告
记忆点滴、品读人生、拥有快乐每一天 

05-4-25

新增代码着色器   (系统更新)

你好Blog 发表于:05-04-25 20:50

新增代码着色器
 
你好Blog新增Java代码着色器
 
方法:
1. IE浏览器在编辑器第二行最后一个J字的图标,如果没有请刷新编辑页面。鼠标选中一段代码,按下J字按钮,代码前-后自动追加[code]...[/code],目前非IE浏览器请在代码前后手动追加[code]...[/code]
 
 
2. 提交时选中提交按钮前的代码着色
 
代码着色效果测试如下:
第一段代码
 
/*
 * Created on 2005-4-19
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.cache;
import com.exception.CacheException;
/**
 * @author Administrator
 * 
 * TODO To change the template for this generated type 
 * comment go to Window -Preferences - Java - Code Style
 */
public interface Cache {
  /**
   * Get an item from the cache
   * 
   * @param key
   * @return the cached object or <tt>null</tt>
   * @throws CacheException
   */
  public Object getCacheObj(Object key) throws CacheException;
  /**
   * Get an item from the cache
   * 
   * @param key
   * @return the cached object or <tt>null</tt>
   * @throws CacheException
   */
  public Object get(Object key) throws CacheException;
}
 public void reset() {
    this.cachedCounter = 1;
    this.key="String Test";
    this.cacheTimestamp = System.currentTimeMillis();
    this.cacheObj = null;
  }

 

版权声明:如本文牵涉版权问题,"你好Blog"不承担相关责任,请版权拥有者直接与文章作者联系解决。谢谢!
引用通告地址(TrackBack Ping Url)
复制引用地址 http://www.nihaoblog.com/trackback.action?itemId=6702
复制引用地址 http://www.nihaoblog.com/trackback.action?itemId=6702

评论1

发表来自:Java
发表时间:05-05-05 18:45
电子邮件:@
评论内容:
非常好,日志里的的源代码可读性非常好!
http://www.nihaoblog.com/258.html
*评 论 人 记忆
*电子邮件 公开Email
*评论内容
(少于256字)
新发的评论置于第1页 评论1