Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1741,7 +1741,7 @@ define(function (require, exports, module) {
* @param {boolean} [center] true to center the viewport
* @param {number} [centerOptions] Option value, or 0 for no options; one of the BOUNDARY_* constants above.
* @param {?string} [origin] An optional string that describes what other selection or edit operations this
* should be merged with for the purposes of undo. See {@link Document::Document#replaceRange} for more details.
* should be merged with for the purposes of undo. See `Document#replaceRange` for more details.
*/
Editor.prototype.setSelection = function (start, end, center, centerOptions, origin) {
this.setSelections([{ start: start, end: end || start }], center, centerOptions, origin);
Expand Down Expand Up @@ -1839,7 +1839,7 @@ define(function (require, exports, module) {
* @param {boolean} center true to center the viewport around the primary selection.
* @param {number} centerOptions Option value, or 0 for no options; one of the BOUNDARY_* constants above.
* @param {?string} origin An optional string that describes what other selection or edit operations this
* should be merged with for the purposes of undo. See {@link Document::Document#replaceRange} for more details.
* should be merged with for the purposes of undo. See `Document#replaceRange` for more details.
*/
Editor.prototype.setSelections = function (selections, center, centerOptions, origin) {
var primIndex = selections.length - 1, options;
Expand Down Expand Up @@ -2323,7 +2323,7 @@ define(function (require, exports, module) {
* the start and end.
* @return {?(Object|string)} Name of syntax-highlighting mode, or object containing a "name" property
* naming the mode along with configuration options required by the mode.
* @see {@link LanguageManager::#getLanguageForPath} and {@link LanguageManager::Language#getMode}.
* @see {@link LanguageManager::#getLanguageForPath} and `Language#getMode`.
*/
Editor.prototype.getModeForRange = function (start, end, knownMixed) {
var outerMode = this._codeMirror.getMode(),
Expand All @@ -2350,7 +2350,7 @@ define(function (require, exports, module) {
* @param {{start:{line:number, ch:number}, end:{line:number, ch:number}, reversed:boolean}} selection
* @return {?(Object|string)} Name of syntax-highlighting mode, or object containing a "name" property
* naming the mode along with configuration options required by the mode.
* @see {@link LanguageManager::#getLanguageForPath} and {@link LanguageManager::Language#getMode}.
* @see {@link LanguageManager::#getLanguageForPath} and `Language#getMode`.
*/
Editor.prototype.getModeForSelection = function (selection) {
// Check for mixed mode info
Expand Down Expand Up @@ -2429,7 +2429,7 @@ define(function (require, exports, module) {
* Gets the syntax-highlighting mode for the document.
*
* @return {Object|String} Object or Name of syntax-highlighting mode
* @see {@link LanguageManager::#getLanguageForPath|LanguageManager.getLanguageForPath} and {@link LanguageManager::Language#getMode|Language.getMode}.
* @see {@link LanguageManager::#getLanguageForPath|LanguageManager.getLanguageForPath} and `Language.getMode`.
*/
Editor.prototype.getModeForDocument = function () {
return this._codeMirror.getOption("mode");
Expand Down
Loading