s*r 发帖数: 2757 | 1 或者什么editor有合适的syntax file
可以让log file显示得和在PC SAS里运行完之后显示的一样的效果 (note 行是蓝色,
error行是红色)? |
D******n 发帖数: 2836 | 2 自己写?
还没想过这样做,一般就是把error给个grep 出来。
【在 s*r 的大作中提到】 : 或者什么editor有合适的syntax file : 可以让log file显示得和在PC SAS里运行完之后显示的一样的效果 (note 行是蓝色, : error行是红色)?
|
s*r 发帖数: 2757 | 3 这不得看error的上下文吗
很多syntax highlight都是针对关键词的,而非整行的
怎么自己写? 用perl在把log文件转成html的过程中着色?
【在 D******n 的大作中提到】 : 自己写? : 还没想过这样做,一般就是把error给个grep 出来。
|
D******n 发帖数: 2836 | 4 如果是用vim可以自己写syntax file。
【在 s*r 的大作中提到】 : 这不得看error的上下文吗 : 很多syntax highlight都是针对关键词的,而非整行的 : 怎么自己写? 用perl在把log文件转成html的过程中着色?
|
b*****e 发帖数: 223 | 5 弱问下,windows SAS 也可以把 error 给 grep 出来么?好多年不用 windows SAS,不
怎么会用了
【在 D******n 的大作中提到】 : 自己写? : 还没想过这样做,一般就是把error给个grep 出来。
|
c****g 发帖数: 156 | 6 There are lots of SAS log check macros, just Google it. |
D******n 发帖数: 2836 | 7 呵呵,刚刚自己写了一个,挺好用的。如果你用vim我就让你试试。
【在 D******n 的大作中提到】 : 如果是用vim可以自己写syntax file。
|
A*******s 发帖数: 3942 | 8 给我吧
【在 D******n 的大作中提到】 : 呵呵,刚刚自己写了一个,挺好用的。如果你用vim我就让你试试。
|
D******n 发帖数: 2836 | 9 syn match sasNote "\s*NOTE:.*"
syn match sasWarn "\s*WARNING:.*"
syn match sasError "\s*ERROR.*"
syn region sasEp start="^\s\+_$" end="^\s\+\d\+$"
hi sNote term=NONE cterm=bold ctermfg=Blue ctermbg=Black gui=bold
guifg=Blue guibg=black
hi sWarn term=NONE cterm=bold ctermfg=Green ctermbg=Black
gui=bold guifg=Green guibg=black
hi sError term=NONE cterm=bold ctermfg=Red ctermbg=Black gui=bold
guifg=Red guibg=black
hi def link sasNote sNote
hi def link sasWarn sWarn
hi def link sasError sError
hi def link sasEp sError
syn sync fromstart
let b:current_syntax = "log"
【在 A*******s 的大作中提到】 : 给我吧
|
D******n 发帖数: 2836 | 10 btw,我这设置为我最喜欢的黑底白字scheme。
【在 D******n 的大作中提到】 : syn match sasNote "\s*NOTE:.*" : syn match sasWarn "\s*WARNING:.*" : syn match sasError "\s*ERROR.*" : syn region sasEp start="^\s\+_$" end="^\s\+\d\+$" : hi sNote term=NONE cterm=bold ctermfg=Blue ctermbg=Black gui=bold : guifg=Blue guibg=black : hi sWarn term=NONE cterm=bold ctermfg=Green ctermbg=Black : gui=bold guifg=Green guibg=black : hi sError term=NONE cterm=bold ctermfg=Red ctermbg=Black gui=bold : guifg=Red guibg=black
|
|
|
s*r 发帖数: 2757 | |
D******n 发帖数: 2836 | 12 你们用unix但却不给你们装vi?
【在 s*r 的大作中提到】 : thx : 单位机器没法自己装
|
s*r 发帖数: 2757 | 13 也许后台是unix server 但都是java的interface
【在 D******n 的大作中提到】 : 你们用unix但却不给你们装vi?
|
s*********e 发帖数: 1051 | 14 you are so mean, buddy. (just kidding)
but you got the point. i've never seen a unix without vi. |
b*****e 发帖数: 223 | 15 .......!
我们以前也没有!
【在 s*********e 的大作中提到】 : you are so mean, buddy. (just kidding) : but you got the point. i've never seen a unix without vi.
|
D******n 发帖数: 2836 | 16 crtl+h/f ?
just kidding. if u install cygwin, u can use grep, but probably thats not wh
at you wanted.
【在 b*****e 的大作中提到】 : 弱问下,windows SAS 也可以把 error 给 grep 出来么?好多年不用 windows SAS,不 : 怎么会用了
|