对UltraEdit增加新的语法高亮,该怎么解决

对UltraEdit增加新的语法高亮,该怎么解决,第1张

在默认状态下,貌似UE并不支持Shell的语法高亮,经过下面的一番设置就可以了, *** 作很简单,几步就可以搞定,成本开销很小,还是设置一下吧。

首先,需要安装了UltraEdit,这是废话,没有UE怎么高亮shell语法。

其次,从网上下载这个文件:ALL WORDFILES IN ONE PACKAGE

最后,在UE打开的状态下,(1)点击菜单“高级”-“配置”,打开配置对话框。在导航一栏,点击“编辑器显示”----“语法高亮”,在右侧“词语列表完整路径”处点击“打开”按钮。此时打开了“C:\Users\Administrator\AppData\Roaming\IDMComp\UltraEdit\WORDFILE.UEW”。即这个目录下的*.urtaledit wordfile。 这里的路径依自己的电脑而有别。这里只管点击打开按钮即可。(2)将上面从网上下载的扩展文件包中的unixshell.uew的内容附加到上面打开的文件中,然后保存;这时打开的shell文件就已经可以高亮显示了,shell文件中的一些关键字已经以其他颜色显示了,是不是觉得好看了很多?

注:从网上下载的包有很多支持的格式,例如python什么的,都可以通过这种方式进行设置。

方法/步骤

1、首先安装ultraedit软件,然后假设你想高亮verilog语言,那么你要到ultraedit官网下载verilog.uew文件,

2、在wordfiles中有你需要的几乎任何编程语言的高亮配置文件,把你需要的进行下载

3、下载之后,把它们放在你ultraedit安装目录wordfiles下面。

4、启动你的ultraedit,选择高级-配置。

5、在配置中选择编辑器显示-语法着色。把wordfiles的完整路径进行复制,勾选相应选择。此处要看清wordfiles完整路径,否则没效果。

6、完成之后,从新打开ultraedit,随便选择一个verilog文件,可以看到高亮显示了。

7、如果你能读懂uew文件,你可以对它进行编辑,高亮你想要高亮的语言。

以上就是专题栏小编带来的UltraEdit教程,更多教程请看“http://www.zhuantilan.com/zt/UltraEdit/”

1.

将Verilog和VHDL语言高亮的代码分别保存为文件Verilog.uew和VHDL.uew,并将其放在ultraedit15.0安装目录中的wordfiles文件夹下;

wordfiles的默认路径是:

C:\Documents and Settings\(电脑用户名)\Application

Data\IDMComp\UltraEdit\wordfiles

Verilog.uew文件内容(文件自己创建即可):

/L11"Verilog" V_LANG Line Comment = // Block Comment On = Escape

Char = \ String Chars = " File Extensions = V TF

/Delimiters = ~#!@%^&*()-+=|\/{}[]:"<>

, .?

/Function String = "%[a-zA-Z_0-9]* ^([a-zA-Z_0-9]+^)[

^t]++(*)[~]"

/Function String 1 = "%[a-zA-Z_0-9]*::^([a-zA-Z_0-9]+^)[

^t]++(*)[~]"

/Indent Strings = "begin"

/Unindent Strings = "end"

/Open Brace Strings = "{" "(" "["

/Close Brace Strings = "}" ")" "]"

/Open Fold Strings = "begin" "case" "fork"

/Close Fold Strings = "end" "endcase" "join"

/C1"Keywords"

and always assign

begin buf bufif0 bufif1

case casex casez cmos

deassign default defparam disable

edge else end endcase endfuction endprimitive endmodule endspecify

endtable endtask event

for force forever fork function

highz0 highz1

if ifnone initial inout input integer

join

large

macromodule medium module

nand negedge nor not notif0 notif1 nmos

or output

parameter pmos posedge primitive pulldown pullup pull0 pull1

rcmos real realtime reg release repeat rnmos rpmos rtran rtranif0

rtranif1

scalared small specify specparam strong0 strong1 supply0

supply1

table task time tran tranif0 tranif1 tri tri0 tri1 triand trior

trireg

vectored

wait wand weak0 weak1 while wire wor

xnor xor

/C2"Pre-compile Key Words"

`accelerate `autoexpand_vectornets

`celldefine

`default_decay_time `default_nettype `default_trireg_strength

`define `delay_mode_distributed `delay_mode_path `delay_mode_unit

`delay_mode_zero

`else `endcelldefine `endif `endprotect `expand_vectornets

`ifdef `include

`noaccelerate `noexpand_vectornets `noremove_gatenames

`noremove_netnames `nounconnected_drive

`protect `protecte

`remove_gatenames `remove_netnames `reset `resetall

`timescale

`unconnected_drive `undef

/C3"System Fuction"

$async$and$array $async$nand$array $async$or$array $async$nor$array

$async$and$plane $async$nand$plane $async$or$plane

$async$nor$plane

$bitstoreal

$countdrivers

$display $dist_chi_square $dist_erlang $dist_exponential

$dist_normal $dis_poisson $dist_t $dist_uniform $dumpall $dumpfile

$dumplimit $dumpoff $dumpon $dumpvars

$fclose $fdisplay $finish $fmonitor $fopen $fstrobe $fwrite

$getpattern

$hold

$incsave $input $itor

$key

$list $log

$monitor $monitoroff $monitoron

$nokey $nolog

$period $printtimescale

$q_add $q_exam $q_full $q_initialize $q_remove

$random $readmemb $readmemh $realtime $realtobits $recovery

$reset_count $reset_value $restart $rtoi

$save $scale $scope $setup $setuphold $showscopes $showvars $skew

$sreadmemb $sreadmemh $stime $stop $strobe $sync$and$array

$sync$nand$array $sync$or$array $sync$nor$array $sync$and$plane

$sync$nand$plane $sync$or$plane $sync$nor$plane

$time $timeformat

$width $write

/C4"Operators"

@

*

+

-

=

// /

%

&

>

<

^

!

|

VHDL.uew文件内容如下(文件自己创建即可):

/L12"VHDL" Line Comment = -- Nocase Block Comment On = -- Block

Comment Off = -- File Extensions = VHD

/Function String = "%entity"

/Delimiters = ~!@$%^&*()+=|\/{}[]:"<>

,.?/

/C1

abs access after alias all and architecture array assert

attribute

begin block body buffer bus

case component configuration constant

disconnect downto

else elsif end entity exit

file for function

generate generic group guarded

if impure in inertial inout is

label library linkage literal loop

map mod

nand new next nor not null

of on open or others out

package port postponed procedure process pure

range record register reject rem report return rol ror

select severity signal shared sla sll sra srl subtype

then to transport type

unaffected units until use

variable

wait when while with

xnor xor

/C2

bit bit_vector boolean

integer

real

std_logic std_logic_vector

/C3

=

<

>

:

/C4

'event 'right

/C5

ActivPullUp AndN And2FF AndNFF

Cnt1Bit CntNBit CntNBitDown CntNBitMod CntNBitOe CntNBitSLd

CntNBitSR CntNBitUpDown CompNBit CompNBitFF

DiffH2LWithFF DiffL2HWithFF Dff1 Dff1NegClk Dffn

Encode4to5

Mux1of2 Mux1of8 Mux1Vof2V Mux1Vof3V Mux1Vof4V

PreScale1Bit PreScale1BitAR PreScale1BitARNegClk PreScaleNBit

PreScaleNBitAR

Reg1Bit Reg1BitAR Reg1BitR RegNBit RegNBitAR RSFFAsync RSFFsync

RsSynchronizer

ShiftP2SRegNBitAR ShiftRegNBitAR ShiftS2SRegNBit SRFFsync

SyncAndDiffL2HWithFF SyncAndDiffH2LWithFF SyncAndDiffL2HWithFFAndFg

SyncAndDiffH2LWithFFAndFg SyncAndDiffLL2HHWithFF

SyncAndDiffHH2LLWithFF SyncAndDiffLL2HHWithFFAndFg

SyncAndDiffHH2LLWithFFAndFg

/C6

ActivPullUp_arch AndN_arch And2FF_arch AndNFF_arch

Cnt1Bit_arch CntNBit_arch CntNBitDown_arch CntNBitMod_arch

CntNBitOe_arch CntNBitSLd_arch CntNBitSR_arch CntNBitUpDown_arch

CompNBit_arch CompNBitFF_arch

DiffH2LWithFF_arch DiffL2HWithFF_arch Dff1_arch Dff1NegClk_arch

Dffn_arch

Encode4to5_arch

Mux1of2_arch Mux1of8_arch Mux1Vof2V_arch Mux1Vof3V_arch

Mux1Vof4V_arch

PreScale1Bit_arch PreScale1BitAR_arch PreScale1BitARNegClk_arch

PreScaleNBit_arch PreScaleNBitAR_arch

Reg1Bit_arch Reg1BitAR_arch Reg1BitR_arch RegNBit_arch

RegNBitAR_arch RSFFAsync_arch RSFFsync_arch

RsSynchronizer_arch

ShiftP2SRegNBitAR_arch ShiftRegNBitAR_arch ShiftS2SRegNBit_arch

SRFFsync_arch SyncAndDiffL2HWithFF_arch SyncAndDiffH2LWithFF_arch

SyncAndDiffL2HWithFFAndFg_arch

SyncAndDiffH2LWithFFAndFg_arch SyncAndDiffLL2HHWithFF_arch

SyncAndDiffHH2LLWithFF_arch SyncAndDiffLL2HHWithFFAndFg_arch

SyncAndDiffHH2LLWithFFAndFg_arch

2.

打开UltraEdit15.0,在工具栏中按下面路径打开对话框:高级——配置——编辑器显示——语法高亮

3.

将对话框中“文档的完整目录名称”选项框改变成另外任意文件夹名称,点击应用;然后,再将其换回成“xxx\wordfiles”,点击应用。此时我们添加到文件夹wordfiles中的两个文件就起作用了,Verilog和VHDL语言可以高亮显示。


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/bake/7953275.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-11
下一篇 2023-04-11

发表评论

登录后才能评论

评论列表(0条)

保存