📄 syntax.html
字号:
<HTML><HEAD><TITLE> Features for Programming </TITLE></HEAD><BODY><A NAME="Syntax_Highlighting"></A><H2> Syntax Highlighting </H2><P>Syntax Highlighting means using colors and fonts to help distinguish languageelements in programming languages and other types of structured files. Programmers use syntax highlighting to understand code faster and better, andto spot many kinds of syntax errors more quickly.</P><P>To use syntax highlighting in NEdit, select Highlight Syntax in thePreferences menu. If NEdit recognizes the computer language that you areusing, and highlighting rules (patterns) are available for that language, itwill highlight your text, and maintain the highlighting, automatically, asyou type.</P><P>If NEdit doesn't correctly recognize the type of the file you are editing,you can manually select a language mode from Language Modes in thePreferences menu. You can also program the method that NEdit uses torecognize language modes in Preferences -> Default Settings -> LanguageModes....</P><P>If no highlighting patterns are available for the language that you want touse, you can create new patterns relatively quickly. The Help section"<A HREF="patterns.html#Highlighting_Patterns">Highlighting Patterns</A>" under "Customizing", has details.</P><P>If you are satisfied with what NEdit is highlighting, but would like it touse different colors or fonts, you can change these by selecting Preferences-> Default Settings -> Syntax Highlighting -> Text Drawing Styles. Highlighting patterns are connected with font and color information through acommon set of styles so that colorings defined for one language will besimilar across others, and patterns within the same language which are meantto appear identical can be changed in the same place. To understand whichstyles are used to highlight the language you are interested in, you may needto look at "<A HREF="patterns.html#Highlighting_Patterns">Highlighting Patterns</A>" section, as well.</P><P>Syntax highlighting is CPU intensive, and under some circumstances can affectNEdit's responsiveness. If you have a particularly slow system, or work withvery large files, you may not want to use it all of the time. Syntaxhighlighting introduces two kinds of delays. The first is an initial parsingdelay, proportional to the size of the file. This delay is also incurredwhen pasting large sections of text, filtering text through shell commands,and other circumstances involving changes to large amounts of text. Thesecond kind of delay happens when text which has not previously been visibleis scrolled in to view. Depending on your system, and the highlight patternsyou are using, this may or may not be noticeable. A typing delay is alsopossible, but unlikely if you are only using the built-in patterns.<P><HR></P><P></P></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -