您的位置:寻梦网首页编程乐园Java天地小龙亭之JSP实践之旅
 

UltraEdit 7.2



对于喜欢手写HTML代码的程序员来说,象Frontpage2000或Dreamweaver3这样
的工具常感觉有些累赘。而自动生成html代码的coldfusion更是程序员的天敌。
我好象就是这样的,几乎从来不用frontpage的预览功能,何况常会失真,
不过frontpage的浏览器预览是真正的站点预览,dreamweaver只是生成一个临时文件,所以这方面dreamweaver很难和frontpage匹敌。
当然,frontpage和dreamweaver只能是各有利弊。我对dreamweaver几乎是憎恶,
它的html编辑器可配置的东西还是太少,竟然没有最大化按钮,缺省时一片灰蒙蒙的。如果使用了外部(挂)编辑器,有时还要重载代码,并提示说文件已经被修改,是否需要重新加载,而其实并没有任何修改,还有些时候莫名其妙地提示说需要另外保存等等,此时如果按了“否”,还有不可预测的后果!
所以我曾一度使用了NotePad,只不过Win98/NT4下的Notepad有很多缺点:
它记不住前一次打开文件的路径,除非你在资源管理器中双击打开那个文件,所以每次要从“我的文档”开始,一路去追寻自己的路径;它没有记忆以前的文件;它不考虑缩进;没有行号,等等。当然win2000的记事本好些了,改进了上面的第一条,即能记忆原来的路径了。
现在有了更多的类似记事本的工具,UltraEdit7.2就是其中的优秀代表。UltraEdit可打开许多文件,文件大小无限制,每个文件都是一个页框,非常直观;既可以记住最近使用的文件,也可以加入到favorate文件表中,还可以建立一个项目文件,把相关文件组织起来;它能保持代码的缩进!在任何时候,行号都会在窗口的状态栏里显示,还可以在view菜单中选择是否每行显示行号;另外,可以通过配置为不同代码设置不同的颜色。。。
有了这些功能,我就已经感到非常满意了,夫复何求呢?
其实它有许许多多功能,例如,支持c/c++,vb,html,java语言的编写,还可以对列进行操作,等等,这里不一一介绍了,本文稍后的英文文档里可能也提到了很多吧。
我试图在这里介绍一下JSP文件的颜色设置,其实这可能很简单,这里的介绍有些没有必要的。

从下图可以看到jsp的代码是有颜色的。其实,究竟是什么颜色并不太重要,重要的是可以有颜色,这当然要比notepad强了,而且也比DreamWeaver Ultradev强,

因为我一直没能配置出颜色来,所以在我的dreamweaver ultradev环境中jsp代码和注释一样是灰色的!

如上图所示,在advanced菜单中选择configuration可以进行配置。

 

 

在配置页中有许多配置项目,其中Syntax Highlighting可以设置不同语法内容或标记的显示颜色。缺省地,可以支持vb,c/c++,java,html,perl等语言,也可以自定义语言,但需要在下方所示的wordfile.txt中进行手工的配置。

被指定文本的颜色只需可视化的点选即可。缺省地,可以定义字符串,数字,注释,普通文本等内容的颜色。

在打开jsp文件后,选择view菜单中的view as highlight file中列出的文件即可,例如,选择java文件,这样jsp文件的颜色就和java文件的设置一样了。不知道为什么,缺省的总是参照了html文件。无法指定所有jsp文件都缺省与java文件一致。(其实,可以在wordfile.txt中直接把java文件的配置copy 到自定义的文件类型即jsp中去,后者干脆在html的设置中再增加一些定义)。这似乎是一个美中不足,但更大的可能是我没有仔细研究实现的方法吧。但是最后我还是不觉得惭愧地想说,有颜色了就行。

以下是一些资料参考:
UltraEdit特性:

Standard Features:
- Disk based text editing
- No limit on file size, minimum RAM used even for multi-megabyte files
- Multiple files open and displayed at the same time
- Column mode editing!!!, Insert columns/ delete/ cut/ add sequential
numbers
- Drag and Drop Editing
- File sort (with remove duplicates, ignore case, ascending, descending)
- 100,000 word spell checker
- Syntax highlighting - configurable, pre configured for C/C++, VB, HTML
and Java
- Automatic word wrap at specified column with hard return
- Insert file into an existing document at cursor position
- Drag and Drop support from the file manager
- Configurable toolbar
- Splitter windows
- Insert and overstrike modes for editing
- Multi-level undo and redo
- UltraEdit is Windows 3.x CUA compliant
- Find and Replace - Also allows selection of text between caret and
find target when shift key is pressed, Replace all in select area
- Find in Files, Replace In Files
- Goto Line Number/Page Break
- Font Selection for display and printer. (Supports all fonts installed
including TRUE-TYPE fonts)
- Print support with headers, footers, margins and page breaks.
- Automatic Line Indentation
- Tab Settings
- Word Wrap Support
- Hexadecimal Editor - Allows editing of any binary file - HEX Cut,
copy and paste support
- HEX Insert and Delete of characters
- HEX Find, Replace and Replace All
- Bookmarks - Unlimited number of Bookmarks
- Multiple Windows of the same file
- Comprehensive macro support, including saving and loading
- Context Sensitive Help
- Automatic backup file generated with (.BAK) extension in the directory of
the original file
- UltraEdit retains its screen position each time it is used
- Line & column number display (line number display may be disabled)
- Pop-up menus with right mouse button.
- Text conversion to lower or upper case and capitalization.
- Unix/Mac to DOS Conversion
- DOS to Unix conversion
- Auto detect UNIX/Mac files
- Convert Word Wrap to CR/LF's allowing word wrap to be written to file
with hard returns
- Convert CR/LF's to Word Wrap (removes CR/LF's from file)
- Template Support
- More ...
Also: - UltraEdit accepts a command line input and so can be used
to replace NOTEPAD or other editors that are called up from a file
manager by clicking on a file.

最新版本为7.2版,有以下新功能:
v7.20 - Paragraph Alignment/Formatting:
Left, Center, Right, Fill (for fixed pitch fonts)
- Minimize All
- Sort file tabs
- Right click on file and open
- Right click on URL and open
- Selectable OEM character set option for fonts that support it
- Add/Remove line comments to select lines
- Column mode enhancements-select columns and type characters to insert
- INI Option to show filename only in title (not path)
- INI Option to make files that changed and are reloaded the active file
- Always On Top configuration item
- Allow negative numbers and increments for Insert Number function
- Function to copy active file path/name to clipboard
- Project can have separate wordfile
- Project allows files to be relative to project file path
- Alt+Right/Left arrow positions cursor to next/previous paragraph
- Alt+PageUp/PageDown positions cursor to top/bottom of Window
- Shift+Goto selects text to the goto position
- Shift+Next/previous bookmark selects text to the bookmark
- Changing clipboard in a macro is now supported

最新消息或下载请访问:

http://www.idmcomp.com

或者 http://www.ultraedit.com


2000/10/14


*****以上由Blueski编写制作*****