Chinaunix首页 | 论坛 | 博客
  • 博客访问: 147370
  • 博文数量: 61
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 590
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-03 15:26
文章分类

全部博文(61)

文章存档

2010年(9)

2009年(52)

我的朋友

分类:

2009-07-09 13:35:14

ultraedit 的模板功能很是强大,可以快速插入一些信息,类似与emacs的templates和autoinsert功能
留个记录,希望更方便的使用

自定义:
1. ultraedit--高级--显示/修改模板
2. 模板想选择-1

3. 中间大框中输入一下内容



=== --[DATE_USER]yyyy-MM-dd[DATE_USER_END] [TIME_USER]HH:mm:ss[TIME_USER_END]--------------------------------- ===


4. 确定
5. 在ultraedit中按"alt+1" (按住alt键按1键)
6. 看到效果了吧:)

时间参数:
日期的格式碼由標籤[DATE_USER]…[DATE_USER_END]包住,

(注意:此標籤格式是固定的,與你自定的樣板名稱無關喔)

至於日期的格式碼請參照下表,紅字部分便是我有用到的。

String

Meaning

d

Day of month as digits with no leading zero for single-digit days.

dd

Day of month as digits with leading zero for single-digit days.

ddd

Day of week as a three-letter abbreviation.

dddd

Day of week as its full name.

M

Month as digits with no leading zero for single-digit months.

MM

Month as digits with leading zero for single-digit months.

MMM

Month as a three-letter abbreviation.

MMMM

Month as its full name.

y

Year as last two digits, but with no leading zero for years less than 10.

yy

Year as last two digits, but with leading zero for years less than 10.

yyyy

Year represented by full four digits.

 

 

另外時間的格式碼語法如下

[TIME_USER]hh:mm[TIME_USER_END]  -> 12:33

[TIME_USER]hh:mm[TIME_USER_END]  -> 01:10

時間的格式碼由標籤[DATE_USER]…[DATE_USER_END]包住,

同上,在標籤外愛放啥文字隨便你。

Define Template的視窗設定完後,
按下快速鍵[Alt]+[自訂樣板的序號]便可插入自訂的時間格式,

時間的格式碼請參照下表,紅字部分是我有用到的。

String

Meaning

h

Hours with no leading zero for single-digit hours; 12-hour clock

hh

Hours with leading zero for single-digit hours; 12-hour clock

H

Hours with no leading zero for single-digit hours; 24-hour clock

HH

Hours with leading zero for single-digit hours; 24-hour clock

m

Minutes with no leading zero for single-digit minutes

mm

Minutes with leading zero for single-digit minutes

s

Seconds with no leading zero for single-digit seconds

ss

Seconds with leading zero for single-digit seconds

t

One character time marker string, such as A or P

tt

Multicharacter time marker string, such as AM or PM

 

其余的信息以后添加吧!

本文部分转载自祐福的部落格
欢迎大家访问
阅读(2779) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~