CodeMirror: Full Screen Editing

  <dt id="option_indentWithTabs"><code>indentWithTabs (boolean)</code></dt>
1
  <dt id="option_indentWithTabs"><code>indentWithTabs (boolean)</code></dt>
2
  <dd>Whether, when indenting, the first N*8 spaces should be
3
  replaced by N tabs. Default is false.</dd>
4
 
5
  <dt id="option_tabMode"><code>tabMode (string)</code></dt>
6
  <dd>Determines what happens when the user presses the tab key.
7
  Must be one of the following:
8
    <dl>
9
      <dt><code>"classic" (the default)</code></dt>
10
      <dd>When nothing is selected, insert a tab. Otherwise,
11
      behave like the <code>"shift"</code> mode. (When shift is
12
      held, this behaves like the <code>"indent"</code> mode.)</dd>
13
      <dt><code>"shift"</code></dt>
14
      <dd>Indent all selected lines by
15
      one <a href="#option_indentUnit"><code>indentUnit</code></a>.
16
      If shift was held while pressing tab, un-indent all selected
17
      lines one unit.</dd>
18
      <dt><code>"indent"</code></dt>
19
      <dd>Indent the line the 'correctly', based on its syntactic
20
      context. Only works if the
21
      mode <a href="#indent">supports</a> it.</dd>
22
      <dt><code>"default"</code></dt>
23
      <dd>Do not capture tab presses, let the browser apply its
24
      default behaviour (which usually means it skips to the next
25
      control).</dd>
26
    </dl></dd>
27
 
28
  <dt id="option_enterMode"><code>enterMode (string)</code></dt>
29
  <dd>Determines whether and how new lines are indented when the
30
  enter key is pressed. The following modes are supported:
31
    <dl>
32
      <dt><code>"indent" (the default)</code></dt>
33
      <dd>Use the mode's indentation rules to give the new line
34
      the correct indentation.</dd>
35
      <dt><code>"keep"</code></dt>
36
      <dd>Indent the line the same as the previous line.</dd>
37
      <dt><code>"flat"</code></dt>
38
      <dd>Do not indent the new line.</dd>
39
    </dl></dd>
40
 
41
  <dt id="option_enterMode"><code>enterMode (string)</code></dt>
42
  <dd>Determines whether and how new lines are indented when the
43
  enter key is pressed. The following modes are supported:
44
    <dl>
45
      <dt><code>"indent" (the default)</code></dt>
46
      <dd>Use the mode's indentation rules to give the new line
47
      the correct indentation.</dd>
48
      <dt><code>"keep"</code></dt>
49
      <dd>Indent the line the same as the previous line.</dd>
50
      <dt><code>"flat"</code></dt>
51
      <dd>Do not indent the new line.</dd>
52
    </dl></dd>
53
 
54
  <dt id="option_enterMode"><code>enterMode (string)</code></dt>
55
  <dd>Determines whether and how new lines are indented when the
56
  enter key is pressed. The following modes are supported:
57
    <dl>
58
      <dt><code>"indent" (the default)</code></dt>
59
      <dd>Use the mode's indentation rules to give the new line
60
      the correct indentation.</dd>
61
      <dt><code>"keep"</code></dt>
62
      <dd>Indent the line the same as the previous line.</dd>
63
      <dt><code>"flat"</code></dt>
64
      <dd>Do not indent the new line.</dd>
65
    </dl></dd>
66
 
67
  <dt id="option_enterMode"><code>enterMode (string)</code></dt>
68
  <dd>Determines whether and how new lines are indented when the
69
  enter key is pressed. The following modes are supported:
70
    <dl>
71
      <dt><code>"indent" (the default)</code></dt>
72
      <dd>Use the mode's indentation rules to give the new line
73
      the correct indentation.</dd>
74
      <dt><code>"keep"</code></dt>
75
      <dd>Indent the line the same as the previous line.</dd>
76
      <dt><code>"flat"</code></dt>
77
      <dd>Do not indent the new line.</dd>
78
    </dl></dd>
79
 
80
 
 

Press F11 when cursor is in the editor to toggle full screen editing. Esc can also be used to exit full screen editing.