mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeEditor
synced 2024-12-01 02:06:18 +00:00
05e6be051c
ACE defaults to a white background now. I have no preference in this, but it is caused by a change in the TextMate theme. There is a bugreport (Bug 55423) about the old blue background. This fixes an annoying problem with Safari 7, where characters are no longer properly measured by ACE. https://github.com/ajaxorg/ace/issues/1534 Fixes double-click to select: https://github.com/ajaxorg/ace/issues/956 Set proper basePath so that require works, allowing conditional loading of ACE resources. Need for Find to work after this update Bug: 55423 Bug: 45876 Bug: 58521 Change-Id: Ia64b67b4553f77c6ba3d2aefec4bab62d111deb7
38 lines
635 B
JavaScript
38 lines
635 B
JavaScript
define('ace/snippets/textile', ['require', 'exports', 'module' ], function(require, exports, module) {
|
|
|
|
|
|
exports.snippetText = "# Jekyll post header\n\
|
|
snippet header\n\
|
|
---\n\
|
|
title: ${1:title}\n\
|
|
layout: post\n\
|
|
date: ${2:date} ${3:hour:minute:second} -05:00\n\
|
|
---\n\
|
|
\n\
|
|
# Image\n\
|
|
snippet img\n\
|
|
!${1:url}(${2:title}):${3:link}!\n\
|
|
\n\
|
|
# Table\n\
|
|
snippet |\n\
|
|
|${1}|${2}\n\
|
|
\n\
|
|
# Link\n\
|
|
snippet link\n\
|
|
\"${1:link text}\":${2:url}\n\
|
|
\n\
|
|
# Acronym\n\
|
|
snippet (\n\
|
|
(${1:Expand acronym})${2}\n\
|
|
\n\
|
|
# Footnote\n\
|
|
snippet fn\n\
|
|
[${1:ref number}] ${3}\n\
|
|
\n\
|
|
fn$1. ${2:footnote}\n\
|
|
\n\
|
|
";
|
|
exports.scope = "textile";
|
|
|
|
});
|