Changeset View
Changeset View
Standalone View
Standalone View
documentation/content/en/books/fdp-primer/editor-config/_index.adoc
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
To configure nxml-mode to validate using this schema, create [.filename]#~/.emacs.d/schema/schemas.xml# and add these lines to the file: | To configure nxml-mode to validate using this schema, create [.filename]#~/.emacs.d/schema/schemas.xml# and add these lines to the file: | ||||
.... | .... | ||||
locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0" | locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0" | ||||
documentElement localName="section" typeId="DocBook" | documentElement localName="section" typeId="DocBook" | ||||
documentElement localName="chapter" typeId="DocBook" | documentElement localName="chapter" typeId="DocBook" | ||||
documentElement localName="article" typeId="DocBook" | documentElement localName="article" typeId="DocBook" | ||||
documentElement localName="book" typeId="DocBook" | documentElement localName="book" typeId="DocBook" | ||||
typeId id="DocBook" uri="/usr/local/shared/xml/docbook/5.0/rng/docbook.rnc" | typeId id="DocBook" uri="/usr/local/share/xml/docbook/5.0/rng/docbook.rnc" | ||||
locatingRules | locatingRules | ||||
.... | .... | ||||
[[editor-config-emacs-igor]] | [[editor-config-emacs-igor]] | ||||
=== Automated Proofreading with Flycheck and Igor | === Automated Proofreading with Flycheck and Igor | ||||
The Flycheck package is available from Milkypostman's Emacs Lisp Package Archive (MELPA). | The Flycheck package is available from Milkypostman's Emacs Lisp Package Archive (MELPA). | ||||
If MELPA is not already in Emacs's packages-archives, it can be added by evaluating | If MELPA is not already in Emacs's packages-archives, it can be added by evaluating | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
[[editor-config-nano-config]] | [[editor-config-nano-config]] | ||||
=== Configuration | === Configuration | ||||
Copy the sample XML syntax highlight file to the user's home directory: | Copy the sample XML syntax highlight file to the user's home directory: | ||||
[source,shell] | [source,shell] | ||||
.... | .... | ||||
% cp /usr/local/shared/nano/xml.nanorc ~/.nanorc | % cp /usr/local/share/nano/xml.nanorc ~/.nanorc | ||||
.... | .... | ||||
Use an editor to replace the lines in the [.filename]#~/.nanorc# `syntax "xml"` block with these rules: | Use an editor to replace the lines in the [.filename]#~/.nanorc# `syntax "xml"` block with these rules: | ||||
.... | .... | ||||
syntax "xml" "\.([jrs]html?|xml|xslt?)$" | syntax "xml" "\.([jrs]html?|xml|xslt?)$" | ||||
# trailing whitespace | # trailing whitespace | ||||
color ,blue "[[:space:]]+$" | color ,blue "[[:space:]]+$" | ||||
Show All 40 Lines |