⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tabs.html

📁 nedit 是一款linux下的开发源码的功能强大的编辑器
💻 HTML
字号:
<HTML><HEAD><TITLE> Features for Programming </TITLE></HEAD><BODY><A NAME="Tabs/Emulated_Tabs"></A><H2> Tabs/Emulated Tabs </H2><P><H3>Changing the Tab Distance</H3></P><P>Tabs are important for programming in languages which use indentation to shownesting, as short-hand for producing white-space for leading indents.  As aprogrammer, you have to decide how to use indentation, and how or whether tabcharacters map to your indentation scheme.</P><P>Ideally, tab characters map directly to the amount of indent that you use todistinguish nesting levels in your code.  Unfortunately, the Unix standardfor interpretation of tab characters is eight characters (probably datingback to mechanical capabilities of the original teletype), which is usuallytoo coarse for a single indent.</P><P>Most text editors, NEdit included, allow you to change the interpretation ofthe tab character, and many programmers take advantage of this, and set theirtabs to 3 or 4 characters to match their programming style.  In NEdit you setthe hardware tab distance in Preferences -&#62; Tabs... for the current window,or Preferences -&#62; Default Settings -&#62; Tabs... (general), or Preferences -&#62;Default Settings -&#62; Language Modes... (language-specific) to change thedefaults for future windows.</P><P>Changing the meaning of the tab character makes programming much easier whileyou're in the editor, but can cause you headaches outside of the editor,because there is no way to pass along the tab setting as part of a plain-textfile.  All of the other tools which display, print, and otherwise processyour source code have to be made aware of how the tabs are set, and must beable to handle the change.  Non-standard tabs can also confuse otherprogrammers, or make editing your code difficult for them if their texteditors don't support changes in tab distance.</P><P><H3>Emulated Tabs</H3></P><P>An alternative to changing the interpretation of the tab character is tabemulation.  In the Tabs... dialog(s), turning on Emulated Tabs causes the Tabkey to insert the correct number of spaces and/or tabs to bring the cursorthe next emulated tab stop, as if tabs were set at the emulated tab distancerather than the hardware tab distance. Backspacing immediately after enteringan emulated tab will delete the fictitious tab as a unit, but as soon as youmove the cursor away from the spot, NEdit will forget that the collection ofspaces and tabs is a tab, and will treat it as separate characters.  To entera real tab character with "Emulate Tabs" turned on, use Ctrl+Tab.</P><P>It is also possible to tell NEdit not to insert ANY tab characters at all inthe course of processing emulated tabs, and in shifting and rectangularinsertion/deletion operations, for programmers who worry about themisinterpretation of tab characters on other systems.<P><HR></P><P></P></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -