“UbuntuHelp:gedit”的版本间的差异
来自Ubuntu中文
小 |
小 |
||
第13行: | 第13行: | ||
== Screenshot == | == Screenshot == | ||
− | + | https://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=scrn-gedit.png | |
== Hints and Tips == | == Hints and Tips == | ||
第33行: | 第33行: | ||
One can use gedit, 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 few changes in gedit to take full benefit of the syntax color highlighting which gedit provides so simple mistakes are caught early. | One can use gedit, 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 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 | + | The process for this is as undhttps://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=gedit1.pngiew tab make the following changes |
− | + | ||
− | + | ||
attachment:gedit1.png | attachment:gedit1.png | ||
− | The only one which could be an option is whether or not to see line numbers, | + | The only one which could be an option is whether or not to see line numbers, https://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=gedit2.pngmost of the options just make life easier. |
− | Now | + | Now thhttps://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=geditsyntaxhighlight.png tab :- |
attachment:gedit2.png | attachment:gedit2.png | ||
第49行: | 第47行: | ||
attachment:geditsyntaxhighlight.png | attachment:geditsyntaxhighlight.png | ||
− | Now make sure that Syntax highlighting is turned on. Just to understand or for kicks go down the drop-down menu & see Docbook, on the left-hand side you see the various | + | Now make sure that Syntax highlighting is turned on. Just to understand or for kicks go down the drop-down menu & see Docbook, on the left-hand side you see the various Elementhttps://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=geditplugins.pngolors associated with that element. Later on you can change the preferences to your liking as you becomes more aware of what you would like to see or are more comfortable with. |
Now jump to the Plugins Tab :- | Now jump to the Plugins Tab :- | ||
第55行: | 第53行: | ||
attachment:geditplugins.png | attachment:geditplugins.png | ||
− | There are no. of changes you can do | + | There are no. of changes you can do https://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=geditdocbook.pngrhaps 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 & while we want Docbook one can also see XML & both look slightly different from each other | Now comes the most interesting part, go to View > Highlight Mode > Markup & while we want Docbook one can also see XML & both look slightly different from each other | ||
第63行: | 第61行: | ||
The above one is when the matter is highlighted using geditdocbook. The same matter when highlighted using XML looks like :- | The above one is when the matter is highlighted using geditdocbook. The same matter when highlighted using XML looks like :- | ||
− | + | https://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=geditmarkup.png | |
That's for the day, feel free to play around with gedit & then markup in general to have a feel of what works, what doesn't. Enjoy :) | That's for the day, feel free to play around with gedit & then markup in general to have a feel of what works, what doesn't. Enjoy :) |
2007年5月13日 (日) 23:46的版本
Parent: UbuntuHelp:Software
目录
gedit Text Editor
Gedit is the default text editor for Ubuntu.
Menu: Accessories > Text Editor
Screenshot
Hints and Tips
- To enable or disable automatic saving of backup files: Preferences > Editor > File Saving
- To make display text larger or smaller: Preferences > Fonts & Colors
- 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.
Using gedit for XML / Docbook XML
One can use gedit, 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 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 undhttps://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=gedit1.pngiew tab make the following changes
attachment:gedit1.png
The only one which could be an option is whether or not to see line numbers, https://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=gedit2.pngmost of the options just make life easier.
Now thhttps://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=geditsyntaxhighlight.png tab :-
attachment:gedit2.png
As one can see there is no much one can do here. Now the next thing is to go to Syntax Highlighting tab.
attachment:geditsyntaxhighlight.png
Now make sure that Syntax highlighting is turned on. Just to understand or for kicks go down the drop-down menu & see Docbook, on the left-hand side you see the various Elementhttps://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=geditplugins.pngolors associated with that element. Later on you can change the preferences to your liking as you becomes more aware of what you would like to see or are more comfortable with.
Now jump to the Plugins Tab :-
attachment:geditplugins.png
There are no. of changes you can do https://help.ubuntu.com/community/gedit?action=AttachFile&do=get&target=geditdocbook.pngrhaps 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 & while we want Docbook one can also see XML & both look slightly different from each other
attachment:geditdocbook.png
The above one is when the matter is highlighted using geditdocbook. The same matter when highlighted using XML looks like :-
That's for the day, feel free to play around with gedit & then markup in general to have a feel of what works, what doesn't. Enjoy :)
Other applications you may wish to look at
Further Reading
CategoryDocumentation