File: Syntax.html

package info (click to toggle)
ne 2.1-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,540 kB
  • ctags: 3,408
  • sloc: ansic: 24,666; perl: 500; makefile: 207; sh: 9
file content (82 lines) | stat: -rw-r--r-- 3,141 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<html lang="en">
<head>
<title>Syntax - ne's manual</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="ne's manual">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Preferences-Commands.html#Preferences-Commands" title="Preferences Commands">
<link rel="prev" href="Modified.html#Modified" title="Modified">
<link rel="next" href="UTF8.html#UTF8" title="UTF8">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Syntax"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="UTF8.html#UTF8">UTF8</a>,
Previous:&nbsp;<a rel="previous" accesskey="p" href="Modified.html#Modified">Modified</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Preferences-Commands.html#Preferences-Commands">Preferences Commands</a>
<hr>
</div>

<h4 class="subsection">4.9.28 Syntax</h4>

<p><a name="index-Syntax-163"></a>
Syntax: <code>Syntax [</code><var>name</var><code>|*]</code><br>
Abbreviation: <code>SY</code>

<p class="noindent">loads the syntax with the given name, and colors the
current buffer accordingly.

   <p>If the optional <var>name</var> argument is not specified, you are
prompted for one. The current one, if set, is suggested as the
default. The special <var>name</var> * turns off syntax highlighting for
the current document. Otherwise, <var>name</var> must match a syntax
definition either in your <samp><span class="file">~/.ne/syntax</span></samp> directory or in a
directory named &lsquo;<samp><span class="samp">syntax</span></samp>&rsquo; inside <code>ne</code>'s global directory. 
Additionally, <code>ne</code> has a table mapping common suffixes to
syntax names. If there is no syntax with a given name, <code>ne</code>
will try to remap the name using the following table  (the string
before the colon is the name of the syntax file):

<pre class="example">        ada: adb, ads
        asm: s
        c: c++, cc, cpp, h, h++ hpp, l, lex, y, yacc
        cobol: cbl, cob
        csh: tcsh
        diff: patch
        fortran: f, for
        html: htm
        java: js
        lisp: el, lsp
        mason: mas
        ocaml: ml, mli
        pascal: p, pas
        perl: pl, pm
        ps: eps
        python: py, sage
        rexx: rex
        ruby: rb
        sh: bash, bash_login, bash_logout, bash_profile, bashrc, ksh,
            profile, rc
        skill: il
        tex: latex, dtx, sty
        troff: 1
        verilog: v, vh, vhd
        xml: xsd
</pre>
   </body></html>