请输入您要查询的百科知识:

 

词条 Source-code editor
释义

  1. Features

  2. Notable examples

  3. Controversy

  4. See also

  5. References

{{refimprove|date=February 2014}}

A source-code editor is a text editor program designed specifically for editing source code of computer programs. It may be a standalone application or it may be built into an integrated development environment (IDE) or web browser. Source-code editors are a fundamental programming tool, as the fundamental job of programmers is to write and edit source code.

Features

Source-code editors have features specifically designed to simplify and speed up typing of source code, such as syntax highlighting, indentation, autocomplete and brace matching functionality. These editors also provide a convenient way to run a compiler, interpreter, debugger, or other program relevant for the software-development process. So, while many text editors like Notepad can be used to edit source code, if they don't enhance, automate or ease the editing of code, they are not source-code editors.

Structure editors are a different form of source-code editor, where instead of editing raw text, one manipulates the code's structure, generally the abstract syntax tree. In this case features such as syntax highlighting, validation, and code formatting are easily and efficiently implemented from the concrete syntax tree or abstract syntax tree, but editing is often more rigid than free-form text. Structure editors also require extensive support for each language, and thus are harder to extend to new languages than text editors, where basic support only requires supporting syntax highlighting or indentation. For this reason, strict structure editors are not popular for source code editing, though some IDEs provide similar functionality.

A source-code editor can check syntax while code is being entered and immediately warn of syntax problems. A few source-code editors compress source code, typically converting common keywords into single-byte tokens, removing unnecessary whitespace, and converting numbers to a binary form. Such tokenizing editors later uncompress the source code when viewing it, possibly prettyprinting it with consistent capitalizing and spacing. A few source-code editors do both.

Notable examples

{{examplefarm |section |date=February 2014}}
  • Atom
  • Brackets
  • Eclipse (cross-platform, including Linux, macOS, Windows)
  • Emacs (cross-platform, including Unix, Linux, macOS, Windows)
  • Gedit (cross-platform, including Linux, macOS, Windows)
  • Microsoft Visual Studio built-in editor (Windows)
  • NetBeans
  • Notepad++ (Windows)
  • SlickEdit (cross-platform, including Linux, macOS, Windows, Solaris, HP-UX, AIX)
  • Sublime Text (cross-platform, including Linux, macOS, Windows)
  • TextMate (OS X)
  • vi/Vim (cross-platform, including Unix, Linux, macOS, Windows)
  • Visual Studio Code (cross-platform, including Linux, OS X, Windows)
  • Xcode (OS X)

Controversy

Many source-code editors and IDEs have been involved in ongoing user arguments, sometimes referred to jovially as "holy wars" by the programming community. Notable examples include vi vs. Emacs and Eclipse vs. NetBeans. These arguments have formed a significant part of internet culture and they often start whenever either editor is mentioned anywhere.

See also

  • Integrated development environment
  • Comparison of integrated development environments
  • Comparison of online source code playgrounds
  • {{section link|Comparison of text editors|Programming features}}
  • Comparison of JavaScript-based source code editors
  • Comparison of hex editors
  • Comparison of HTML editors
  • List of text editors

References

{{text-editor-stub}}

3 : Text editors|Computer programming tools|Types of tools used in software development

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 22:41:49