Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CodeMirror
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Moritz Aurel Pascal Schubotz
CodeMirror
Commits
1605b555
Commit
1605b555
authored
12 years ago
by
Marijn Haverbeke
Browse files
Options
Downloads
Patches
Plain Diff
Demote formatting.js to non-supported module status
parent
8a2d4668
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
demo/formatting.html
+7
-0
7 additions, 0 deletions
demo/formatting.html
doc/manual.html
+0
-5
0 additions, 5 deletions
doc/manual.html
index.html
+0
-1
0 additions, 1 deletion
index.html
with
7 additions
and
6 deletions
demo/formatting.html
+
7
−
0
View file @
1605b555
...
...
@@ -24,6 +24,13 @@
<body>
<h1>
CodeMirror: Formatting demo
</h1>
<p><strong>
Note:
</strong>
The formatting addon receives a fair
amount of bug requests. I (the maintainer of CodeMirror) do not
intend to spend time on improving it. Pull requests (if clean and
intelligent) are welcome, but you should see this code as a
proof-of-concept (using CodeMirror's mode tokenizers to help
format code), not a finished, robust module.
</p>
<form><textarea
id=
"code"
name=
"code"
><script>
function
(
s
,
e
){
for
(
var
i
=
0
;
i
<
1
;
i
++
)
test
(
"
test();a=1
"
);}
</script>
<script>
function
test
(
c
){
for
(
var
i
=
0
;
i
<
10
;
i
++
){
process
(
"
a.b();c = null;
"
,
300
);}
...
...
This diff is collapsed.
Click to expand it.
doc/manual.html
+
0
−
5
View file @
1605b555
...
...
@@ -1496,11 +1496,6 @@
gives the wrapper of the active line the class
<code>
CodeMirror-activeline
</code>
,
and adds a background with the class
<code>
CodeMirror-activeline-background
</code>
.
is enabled. See the
<a
href=
"../demo/activeline.html"
>
demo
</a>
.
</dd>
<dt
id=
"addon_formatting"
><a
href=
"../addon/format/formatting.js"
><code>
formatting.js
</code></a></dt>
<dd>
Adds
<code>
commentRange
</code>
,
<code>
autoIndentRange
</code>
,
and
<code>
autoFormatRange
</code>
methods that, respectively,
comment (or uncomment), indent, or format (add line breaks) a
range of code.
<a
href=
"../demo/formatting.html"
>
Demo here.
</a></dd>
<dt
id=
"addon_closetag"
><a
href=
"../addon/edit/closetag.js"
><code>
closetag.js
</code></a></dt>
<dd>
Provides utility functions for adding automatic tag closing
to XML modes. See
...
...
This diff is collapsed.
Click to expand it.
index.html
+
0
−
1
View file @
1605b555
...
...
@@ -109,7 +109,6 @@
<li><a
href=
"demo/fullscreen.html"
>
Full-screen editing
</a></li>
<li><a
href=
"demo/changemode.html"
>
Mode auto-changing
</a></li>
<li><a
href=
"demo/visibletabs.html"
>
Visible tabs
</a></li>
<li><a
href=
"demo/formatting.html"
>
Autoformatting of code
</a></li>
<li><a
href=
"demo/emacs.html"
>
Emacs keybindings
</a></li>
<li><a
href=
"demo/vim.html"
>
Vim keybindings
</a></li>
<li><a
href=
"demo/closetag.html"
>
Automatic xml tag closing
</a></li>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment