注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Help:Funtoo Editing Guidelines/Inline Code"
Jump to navigation
Jump to search
(Created page with "=== Inline Code === To emphasize commands, and other technical jargon when they appear inline in a paragraph, use the <nowiki>{{c}}</nowiki> template. When referencing files,...") |
|||
Line 1: | Line 1: | ||
=== Inline Code === | === Inline Code === | ||
To emphasize commands, and other technical jargon when they appear inline in a paragraph, use the <nowiki>{{c}}</nowiki> template. When referencing files, use the <nowiki>{{f}}</nowiki> template. | To emphasize commands, and other technical jargon when they appear inline in a paragraph, use the {{c|<nowiki>{{c}}</nowiki>}} template. When referencing files, use the {{c|<nowiki>{{f}}</nowiki>}} template. These templates help inline commands and files to stand out a bit from the regular paragraph text. | ||
<pre> | <pre> |
Latest revision as of 03:42, February 24, 2019
Inline Code
To emphasize commands, and other technical jargon when they appear inline in a paragraph, use the {{c}}
template. When referencing files, use the {{f}}
template. These templates help inline commands and files to stand out a bit from the regular paragraph text.
The {{f|/etc/fstab}} file is an important one. Another important file is {{f|/boot/grub/grub.cfg}}. The {{c|emerge}} command is really nifty.
This example produces the following output:
The /etc/fstab
file is an important one. Another important file is /boot/grub/grub.cfg
. The emerge
command is really nifty.
Important
The <tt> tag has been deprecated for the purpose of tagging inline code, to conform with HTML5, and the previous use of the <code> tag is discouraged. It is more maintainable to use the {{c}} template.