Ace Editor Plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" yes
  • 2011-05-25 "Rincewind" yes
  • 2010-11-07 "Anteater" yes

plugin Replace textarea with Ace editor

Last updated on
2012-04-17
Provides
Action
Repository
Source
Conflicts with
dokucrypt, fckglite

Installation

Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

Screenshot

Command reference

Navigation

Command PC Mac
Center selection Ctrl-L
Go to end Ctrl-End / Ctrl-Down Command-End / Command-Down
Go to line Ctrl-L Command-L
Go to line start Alt-Left / Home Command-Left / Home / Ctrl-A
Go to start Ctrl-Home / Ctrl-Up Command-Home / Command-Up
Go to word left Ctrl-Left Option-Shift-Left
Go to word right Ctrl-Right Option-Right

Selection

Command PC Mac
Select all Ctrl-A Command-A
Select to end Ctrl-Shift-End / Alt-Shift-Down Command-Shift-Down
Select to line end Alt-Shit-Right / Shift-End Command-Shift-Right / Shift-End
Select to line start Alt-Shift-Left / Shift-Home Command-Shift-Left / Shift-Home
Select to start Ctrl-Shift-Home / Alt-Shift-Up Command-Shift-Up
Select word left Ctrl-Shift-Left Option-Shift-Left
Select word right Ctrl-Shift-Right Option-Shift-Right

Basic editing

Command PC Mac
Copy lines down Ctrl-Alt-Down Command-Option-Down
Copy lines up Ctrl-Alt-Up Command-Option-Up
Indent Tab Tab
Move lines down Alt-Down Option-Down
Move lines up Alt-Up Option-Up
Outdent Shift-Tab Shift-Tab
Redo Ctrl-Shift-Z / Ctrl-Y Command-Shift-Z / Command-Y
Remove line Ctrl-D Command-D
Remove to line end Ctrl-K
Remove to line start Option-Backspace
Remove word left Alt-Backspace
Remove word right Alt-Delete
Split line Ctrl-O
Transpose letters Ctrl-T Ctrl-T
Undo Ctrl-Z Command-Z

Find and replace

Command PC Mac
Find Ctrl-F Command-F
Find next Ctrl-K Command-G
Find previous Ctrl-Shift-K Command-Shift-G
Replace Ctrl-R Command-Option-F
Replace all Ctrl-Shift-R Command-Shift-Option-F

Tables

Command PC Mac
Align cell to center Ctrl-Space-C Ctrl-Space-C
Align cell to left Ctrl-Space-L Ctrl-Space-L
Align cell to right Ctrl-Space-R Ctrl-Space-R
Go to next cell Tab Tab
Go to next row Enter Shift-Enter
Go to previous cell Shift-Tab Shift-Tab
Go to previous row Shift-Enter Shift-Enter
Move column right Alt-Right Option-Right
Move column left Alt-Left Option-Left
Remove column Ctrl-Shift-D Command-Shift-D
Remove row Ctrl-D Command-D
Toggle cell type Ctrl-Space-T Ctrl-Space-T

Configuration and Settings

The plugin can be configured using the DokuWiki configuration manager available in the admin menu.

  • default: Default editor (on/off)
  • highlight: Enable syntax highligting (on/off)
  • wraplimit: Text wrapping column limit (columns)
  • colortheme: Color theme (can be customized further by editing style.css)
  • loadjquery: Load jQuery library from Google CDN (only available in “Rincewind” and older versions of DokuWiki)
  • latex: Enable support for LaTeX plugin
  • markdown: Enable support for Markdown plugin
  • xmltags: Additional XML-like tags (list of tag names separated by commas)

Developement

Change Log

ToDo/Wish List

  • Image Hover preview.
  • Editing shortcuts for lists.
  • Personal configuration.
  • Spell checking.

Translations

Polishaleksaleks

2011/11/18 08:17

FAQ

Is the default editor still available?

Yes, you can switch between the Ace editor and the default editor by clicking the “Ace” icon.

What syntax elements are highlighted?

Only syntax elements from core plugins and (optionally) LaTeX plugin are highlighted. Content inside <html>, <php> and <latex> tags is highlighted, content inside <code> and <file> tags is highlighted if its language is c, cpp, csharp, css, groovy, html, java, javascript, latex, lua, perl, php, python, ruby, scala, sql or xml.

Which browsers are supported?

We have tested the plugin successfully with Firefox, Chrome, Internet Explorer 9, Safari and Epiphany. Older versions of Internet Explorer are not supported, a normal textarea is used instead. Opera works but there are some visualization bugs.

How to use a local copy of jQuery?

Starting from version “Angua” of DokuWiki, the included jQuery library is used.

For older versions of DokuWiki, jQuery is loaded from cdn.jquery.com by default. If you want to use your own copy of jQuery disable the loadjquery setting.

Discussion

To report a bug, please use the issue tracker.

For features requests or comments, use the discussion page.

plugin/aceeditor.txt · Last modified: 2012/04/17 10:04 by albertgasset
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate