Gedit
文章出处: |
{{#if: | {{{2}}} | https://wiki.ubuntu.com/php5 }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/af | • {{#if: UbuntuHelp:Gedit|Afrikaans| [[::Gedit/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/ar | • {{#if: UbuntuHelp:Gedit|العربية| [[::Gedit/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/az | • {{#if: UbuntuHelp:Gedit|azərbaycanca| [[::Gedit/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/bcc | • {{#if: UbuntuHelp:Gedit|جهلسری بلوچی| [[::Gedit/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/bg | • {{#if: UbuntuHelp:Gedit|български| [[::Gedit/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/br | • {{#if: UbuntuHelp:Gedit|brezhoneg| [[::Gedit/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/ca | • {{#if: UbuntuHelp:Gedit|català| [[::Gedit/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/cs | • {{#if: UbuntuHelp:Gedit|čeština| [[::Gedit/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/de | • {{#if: UbuntuHelp:Gedit|Deutsch| [[::Gedit/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/el | • {{#if: UbuntuHelp:Gedit|Ελληνικά| [[::Gedit/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/es | • {{#if: UbuntuHelp:Gedit|español| [[::Gedit/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/fa | • {{#if: UbuntuHelp:Gedit|فارسی| [[::Gedit/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/fi | • {{#if: UbuntuHelp:Gedit|suomi| [[::Gedit/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/fr | • {{#if: UbuntuHelp:Gedit|français| [[::Gedit/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/gu | • {{#if: UbuntuHelp:Gedit|ગુજરાતી| [[::Gedit/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/he | • {{#if: UbuntuHelp:Gedit|עברית| [[::Gedit/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/hu | • {{#if: UbuntuHelp:Gedit|magyar| [[::Gedit/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/id | • {{#if: UbuntuHelp:Gedit|Bahasa Indonesia| [[::Gedit/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/it | • {{#if: UbuntuHelp:Gedit|italiano| [[::Gedit/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/ja | • {{#if: UbuntuHelp:Gedit|日本語| [[::Gedit/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/ko | • {{#if: UbuntuHelp:Gedit|한국어| [[::Gedit/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/ksh | • {{#if: UbuntuHelp:Gedit|Ripoarisch| [[::Gedit/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/mr | • {{#if: UbuntuHelp:Gedit|मराठी| [[::Gedit/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/ms | • {{#if: UbuntuHelp:Gedit|Bahasa Melayu| [[::Gedit/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/nl | • {{#if: UbuntuHelp:Gedit|Nederlands| [[::Gedit/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/no | • {{#if: UbuntuHelp:Gedit|norsk| [[::Gedit/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/oc | • {{#if: UbuntuHelp:Gedit|occitan| [[::Gedit/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/pl | • {{#if: UbuntuHelp:Gedit|polski| [[::Gedit/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/pt | • {{#if: UbuntuHelp:Gedit|português| [[::Gedit/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/ro | • {{#if: UbuntuHelp:Gedit|română| [[::Gedit/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/ru | • {{#if: UbuntuHelp:Gedit|русский| [[::Gedit/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/si | • {{#if: UbuntuHelp:Gedit|සිංහල| [[::Gedit/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/sq | • {{#if: UbuntuHelp:Gedit|shqip| [[::Gedit/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/sr | • {{#if: UbuntuHelp:Gedit|српски / srpski| [[::Gedit/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/sv | • {{#if: UbuntuHelp:Gedit|svenska| [[::Gedit/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/th | • {{#if: UbuntuHelp:Gedit|ไทย| [[::Gedit/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/tr | • {{#if: UbuntuHelp:Gedit|Türkçe| [[::Gedit/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/vi | • {{#if: UbuntuHelp:Gedit|Tiếng Việt| [[::Gedit/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/yue | • {{#if: UbuntuHelp:Gedit|粵語| [[::Gedit/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/zh | • {{#if: UbuntuHelp:Gedit|中文| [[::Gedit/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/zh-hans | • {{#if: UbuntuHelp:Gedit|中文(简体)| [[::Gedit/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Gedit | UbuntuHelp:Gedit | {{#if: | :}}Gedit}}/zh-hant | • {{#if: UbuntuHelp:Gedit|中文(繁體)| [[::Gedit/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Gedit|:Gedit|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Gedit/zh | | {{#ifexist: Gedit/zh | | {{#ifeq: {{#titleparts:Gedit|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Gedit|1|-1|}} | zh | | }}
介绍
gedit 文本编辑器是ubuntu系统内初始的默认编辑器。它既适于基本的文本编辑,也适用于高级文本编辑。gedit在绝大多数ubuntu的发行版中都已经预装。
屏幕截图
小提示
- 打开或者关闭文件自动保存功能能,依次点击:编辑->首选项,在弹出的对话框中选择“编辑器”选项卡,选择“自动保存文件”,并且输入自动保存间隔。
- 调整文本字体以及字号的大小,依次点击:编辑->首选项,在弹出的对话框中选择“字体和颜色”选项卡,点击取消“使用系统等宽字体”前的勾,然后在下面调整字体以及字体大小
- For editing configuration files, for example your repository list (in Terminal):
如果您需要编辑一些配置文件,例如你的更新源列表(这项操作是在终端下进行的):
gksudo gedit /etc/apt/sources.list
Note: If you need to run graphical applications as root, use gksudo, as shown above, as it will set up the environment more appropriately. Avoid ever using sudo with gui apps. 注意:如果您需要以root身份运行一些图形界面的程序,您可以向上面那样使用gksudo命令,gksudo命令可以适当的为您设置好图形运行环境。
Using gedit for XML / Docbook XML
One can use gedit for a more user-friendly way to make XML markup or Docbook XML for yelp documentation. The pictures and instructions given below uses gedit 2.18.1. You should make a few changes in gedit to take full benefit of the syntax color highlighting which gedit provides so simple mistakes are caught early. The process for this is as follows: Under the View tab make the following changes: The only one which could be an option is whether or not to see line numbers, but apart from that, most of the options just make life easier. Now the next change to make is under Editor tab: As one can see there is not much to do here. Now the next thing is to go to the Syntax Highlighting tab. Now make sure that Syntax highlighting is turned on. Just to understand or for kicks go down the drop-down menu and see Docbook, on the left-hand side you see the various Elements and can see the various colors associated with that element. Later on you can change the preferences to your liking as you become more aware of what you would like to see or are more comfortable with. Now jump to the Plugins Tab: There are a number of changes you can make here, the most important perhaps is the Tag List option. Feel free to make use of other options and see how that changes the text. Now comes the most interesting part, go to View > Highlight Mode > Markup and while we want Docbook one can also see XML and both look slightly different from each other: The above one is when the text is highlighted using geditdocbook. The same text when highlighted using XML looks like: That's all, feel free to play around with gedit and markup in general to have a feel of what works and what doesn't.
- == Other applications you may wish to look at ==