From bf227d2ef1a42f6c443553f62a541957ab7540ab Mon Sep 17 00:00:00 2001 From: Josh Barnes Date: Mon, 13 Feb 2017 18:30:29 +0000 Subject: [PATCH] add lineComment and indent for octave mode The lack of being able to toggle comments has been annoying me lately. --- mode/octave/octave.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mode/octave/octave.js b/mode/octave/octave.js index a7bec030c2..c5017ae55e 100644 --- a/mode/octave/octave.js +++ b/mode/octave/octave.js @@ -126,7 +126,11 @@ CodeMirror.defineMode("octave", function() { state.tokenize = tokenTranspose; } return style; - } + }, + + lineComment: '%', + + fold: 'indent' }; });