Source string Read only

(itstool) path: sect2/para
68/680
Context English State
FreeBSD Documentation Specific Settings
To apply settings specific to the FreeBSD documentation project, create <filename>.dir-locals.el</filename> in the root directory of the documentation repository and add these lines to the file:
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")

((nxml-mode
(eval . (turn-on-auto-fill))
(fill-column . 70)
(eval . (require 'flycheck))
(eval . (flycheck-mode 1))
(flycheck-checker . igor)
(eval . (add-to-list 'rng-schema-locating-files "~/.emacs.d/schema/schemas.xml"))))
<application>nano</application>
Install from <package>editors/nano</package> or <package>editors/nano-devel</package>.
Copy the sample <acronym>XML</acronym> syntax highlight file to the user's home directory:
<prompt>%</prompt> <userinput>cp /usr/local/share/nano/xml.nanorc ~/.nanorc</userinput>
Use an editor to replace the lines in the <filename>~/.nanorc</filename> <literal>syntax "xml"</literal> block with these rules:
syntax "xml" "\.([jrs]html?|xml|xslt?)$"
# trailing whitespace
color ,blue "[[:space:]]+$"
# multiples of eight spaces at the start a line
# (after zero or more tabs) should be a tab
color ,blue "^([TAB]*[ ]{8})+"
# tabs after spaces
color ,yellow "( )+TAB"
# highlight indents that have an odd number of spaces
color ,red "^(([ ]{2})+|(TAB+))*[ ]{1}[^ ]{1}"
# lines longer than 70 characters
color ,yellow "^(.{71})|(TAB.{63})|(TAB{2}.{55})|(TAB{3}.{47}).+$"
Process the file to create embedded tabs:
<prompt>%</prompt> <userinput>perl -i'' -pe 's/TAB/\t/g' ~/.nanorc</userinput>
Specify additional helpful options when running the editor:
<prompt>%</prompt> <userinput>nano -AKipwz -r 70 -T8 <replaceable>chapter.xml</replaceable></userinput>
Users of <citerefentry><refentrytitle>csh</refentrytitle><manvolnum>1</manvolnum></citerefentry> can define an alias in <filename>~/.cshrc</filename> to automate these options:
alias nano "nano -AKipwz -r 70 -T8"
After the alias is defined, the options will be added automatically:
<prompt>%</prompt> <userinput>nano <replaceable>chapter.xml</replaceable></userinput>
See Also
This document is deliberately not an exhaustive discussion of XML, the DTDs listed, and the FreeBSD Documentation Project. For more information about these, you are encouraged to see the following web sites.
The FreeBSD Documentation Project
<link xlink:href="@@URL_RELPREFIX@@/docproj/index.html">The FreeBSD Documentation Project web pages</link>
<link xlink:href="@@URL_RELPREFIX@@/doc/en_US.ISO8859-1/books/handbook/index.html">The FreeBSD Handbook</link>
XML
<link xlink:href="http://www.w3.org/XML/">W3C's XML page SGML/XML web page</link>
HTML
<link xlink:href="http://www.w3.org/">The World Wide Web Consortium</link>
<link xlink:href="http://www.w3.org/TR/REC-html40/">The HTML 4.0 specification</link>
DocBook
<link xlink:href="http://www.oasis-open.org/docbook/">The DocBook Technical Committee</link>, maintainers of the DocBook DTD
<link xlink:href="http://www.docbook.org/">DocBook: The Definitive Guide</link>, the online documentation for the DocBook DTD
<link xlink:href="http://docbook.sourceforge.net/">The DocBook Open Repository</link> contains DSSSL stylesheets and other resources for people using DocBook

Loading…

No matching activity found.

Browse all component changes

Glossary

English English
No related strings found in the glossary.

Source information

Source string comment
(itstool) path: sect2/para
Flags
read-only
Source string location
book.translate.xml:9805
String age
a year ago
Source string age
a year ago
Translation file
books/fdp-primer.pot, string 1724