对UltraEdit增加新的语法高亮

zenny_chen 2007-05-13 01:21:08
支持C99和CPP2003所有关键字的高亮(Highlight)。
增加MASM x86指令集的高亮。
增加Blackfin指令集的高亮
增加VisualDSP++扩充关键字的高亮


http://download.csdn.net/source/174562

欢迎大家下载
...全文
1389 18 打赏 收藏 转发到动态 举报
写回复
用AI写文章
18 条回复
切换为时间正序
请发表友善的回复…
发表回复
zenny_chen 2007-05-14
  • 打赏
  • 举报
回复
我刚才试过。

大家在点击下载后一定出现了以下内容:

/L1"C/C++" C_LANG Line Comment = // Block Comment On = /* Block Comment Off = */ Escape Char = \ String Chars = "' File Extensions = C CPP CC CXX H HPP AWK
/Delimiters = ~!@%^&*()-+=|\/{}[]:;"'<> , .?
/Function String = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]+([^p*&, ^t^[^]a-zA-Z_0-9.!]++)[~;]"
/Function String 1 = "%[a-zA-Z_0-9*]*::^([a-zA-Z_0-9^~]+^)[ ^t^p]++([^p*&, ^t^[^]/*=:&a-zA-Z_0-9./(!]++)[~;]"
/Function String 2 = "%[a-zA-Z_0-9^][a-zA-Z_0-9^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function String 3 = "%[a-zA-Z_0-9*&$^[^]*]+[ ^t]+[a-zA-Z_0-9*&$^[^]]+[ ^t*]+^([a-zA-Z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./(!]++)[~;]"
/Function String 4 = "%[a-z_0-9^[^]*]++ [a-z_0-9*^[^]]+[ ^t]++[a-z_0-9*^[^]]+[ ^t]++^([*a-z_0-9]+^)[ ^t]++([^p*&, ^t^[^]a-z_0-9./(!]++)[~;]"
/Function String 5 = "%^([a-zA-Z_0-9^[^]*]+^)[ ^t]++([^p*&, ^t^[^]a-zA-Z_0-9./()!]++)[~;]"
/Indent Strings = "{" ":"
/Unindent Strings = "}"
/Open Brace Strings = "{" "(" "["
/Close Brace Strings = "}" ")" "]"
/Open Fold Strings = "{"
/Close Fold Strings = "}"
/C1"Keywords"
auto
break bool
case char const continue
default do double defined
else enum extern
float for
goto
if int
long
register restrict return
short signed sizeof static struct switch
typedef
union unsigned
void volatile
while
_Bool _Complex _Imaginary
__asm __based __cdecl __declspec __except __far __fastcall __finally __fortran __huge __inline __int16 __int32 __int64 __int8 __interrupt __leave __loadds __near __pascal __saveregs __segment __segname __self __stdcall __try __uuidof
#define #error #include #include_next #elif #if #line #else #ifdef #pragma #endif #ifndef #undef
/C2"C++ Keywords"


这就是wordfile中对C语言的描述部分。只要看到这个页面,另存为就行了。
zenny_chen 2007-05-14
  • 打赏
  • 举报
回复
刚才有碰到无法下载却被扣分的情况。
发生这个问题后请参见资源下载的说明。

如果发生无法下载还被扣分的情况,可以继续下载,后面的下载将不会被扣分。

谢谢大家支持!
yuyunliuhen 2007-05-14
  • 打赏
  • 举报
回复
LZ快快解决哈
yuyunliuhen 2007-05-14
  • 打赏
  • 举报
回复
下不了啊,
cmail 2007-05-14
  • 打赏
  • 举报
回复
支持
UP
yuyunliuhen 2007-05-14
  • 打赏
  • 举报
回复
先下下来再说,嘿嘿
zenny_chen 2007-05-13
  • 打赏
  • 举报
回复
刚才有碰到无法下载却被扣分的情况。
发生这个问题后请参见资源下载的说明。

如果发生无法下载还被扣分的情况,可以继续下载,后面的下载将不会被扣分。

谢谢大家支持!
zenny_chen 2007-05-13
  • 打赏
  • 举报
回复
希望大家使用后也能提出宝贵意见,谢谢!
wonxlei 2007-05-13
  • 打赏
  • 举报
回复
顶~
zenny_chen 2007-05-13
  • 打赏
  • 举报
回复
呵呵。承蒙大版主的支持。
jixingzhong 2007-05-13
  • 打赏
  • 举报
回复
支持
  • 打赏
  • 举报
回复
支持
Dobzhansky 2007-05-13
  • 打赏
  • 举报
回复
强烈的顶顶
UltraStudio 现在在用, 真是太牛鼻了

一般注意备份两个文件
wordfile

C:\Documents and Settings\用户名\Application Data\IDMComp\UEStudio\UEStudio.INI
或者
C:\Documents and Settings\用户名\Application Data\IDMComp\UltraEdit\UltraEdit.INI
zenny_chen 2007-05-13
  • 打赏
  • 举报
回复
是自己做得。
zenny_chen 2007-05-13
  • 打赏
  • 举报
回复
void Hello(int restrict *p)
{
_Bool b = 0;

_Complex float comp = 0.5f;

_Imaginary double d = 3.456;
}

以上是C99的扩充。

下面是CPP2003以及VisualDSP++的扩充:

// for VisualDSP++
section("data1")
int hello;

bank("bank1")
void func(void)
{

}

void main(void)
{
asm("idle;"); // asm关键字是CPP2003的扩充,不过这种嵌入汇编的语法是
VisualDSP++ 的
}

后面是blackfin指令集:

.section program;

.global _hello:

_hello:

[--sp] = r7;

p0.h = 0xffc0;
p0.l = 0x0100;

i0.h = 0xffc1;
i0.l = 0x0100;

r0 = r7 - r0(ns) || r7 = [p0]; || r1 = [i0]; // 并行发布指令

rts;

_hello.end:


MASM

DATA SEGMENT

hello db 0

DATA ENDS

mystack segment para stack
db 100h dup(0)
mystack ends

code segment
assume cs:code, ds:data, ss:mystack

LINK equ 10

LAB = 20

start:
mov ax, data

mov ds, ax

here: jmp here

func proc near

mov ax, word ptr [si] ; ax = [si]

func endp

Hii proc far

Hii endp

mov ah, 4ch

int 21h

code ends

end start
iambic 2007-05-13
  • 打赏
  • 举报
回复
自己做的?
hellox 2007-05-13
  • 打赏
  • 举报
回复
板凳.
hellox 2007-05-13
  • 打赏
  • 举报
回复
SF

64,645

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧