Fresh build
This commit is contained in:
parent
314f756bfb
commit
5174c54a89
54 changed files with 144 additions and 54 deletions
|
|
@ -4005,6 +4005,36 @@ var Editor = function(renderer, session) {
|
|||
this.session.replace(range, swap);
|
||||
};
|
||||
|
||||
this.toLowerCase = function() {
|
||||
if (this.$readOnly)
|
||||
return;
|
||||
|
||||
var originalRange = this.getSelectionRange();
|
||||
if (this.selection.isEmpty()) {
|
||||
this.selection.selectWord();
|
||||
}
|
||||
|
||||
var range = this.getSelectionRange();
|
||||
var text = this.session.getTextRange(range);
|
||||
this.session.replace(range, text.toLowerCase());
|
||||
this.selection.setSelectionRange(originalRange);
|
||||
};
|
||||
|
||||
this.toUpperCase = function() {
|
||||
if (this.$readOnly)
|
||||
return;
|
||||
|
||||
var originalRange = this.getSelectionRange();
|
||||
if (this.selection.isEmpty()) {
|
||||
this.selection.selectWord();
|
||||
}
|
||||
|
||||
var range = this.getSelectionRange();
|
||||
var text = this.session.getTextRange(range);
|
||||
this.session.replace(range, text.toUpperCase());
|
||||
this.selection.setSelectionRange(originalRange);
|
||||
};
|
||||
|
||||
this.indent = function() {
|
||||
if (this.$readOnly)
|
||||
return;
|
||||
|
|
@ -6080,6 +6110,14 @@ exports.commands = [{
|
|||
name: "transposeletters",
|
||||
bindKey: bindKey("Ctrl-T", "Ctrl-T"),
|
||||
exec: function(editor) { editor.transposeLetters(); }
|
||||
}, {
|
||||
name: "touppercase",
|
||||
bindKey: bindKey("Ctrl-U", "Ctrl-U"),
|
||||
exec: function(editor) { editor.toUpperCase(); }
|
||||
}, {
|
||||
name: "tolowercase",
|
||||
bindKey: bindKey("Ctrl-Shift-U", "Ctrl-Shift-U"),
|
||||
exec: function(editor) { editor.toLowerCase(); }
|
||||
}, {
|
||||
name: "fold",
|
||||
bindKey: bindKey("Alt-L", "Alt-L"),
|
||||
|
|
@ -13704,8 +13742,7 @@ define("text!ace/css/editor.css", [], "@import url(//fonts.googleapis.com/css?fa
|
|||
*
|
||||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
define('ace/theme/textmate', ['require', 'exports', 'module' ], function(require, exports, module) {
|
||||
|
||||
define('ace/theme/textmate', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
|
||||
|
||||
exports.cssClass = "ace-tm";
|
||||
exports.cssText = ".ace-tm .ace_editor {\
|
||||
|
|
@ -13875,6 +13912,8 @@ exports.cssText = ".ace-tm .ace_editor {\
|
|||
color: rgb(255, 0, 0)\
|
||||
}";
|
||||
|
||||
var dom = require("ace/lib/dom");
|
||||
dom.importCssString(exports.cssText);
|
||||
});
|
||||
/* vim:ts=4:sts=4:sw=4:
|
||||
* ***** BEGIN LICENSE BLOCK *****
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue