added: helpers on lines

This commit is contained in:
quenousimporte 2023-10-10 13:08:56 +02:00
parent d14ac88cee
commit 1c586bd669
1 changed files with 10 additions and 0 deletions

10
main.js
View File

@ -2084,6 +2084,16 @@ var languagekeywords = {
"js": ["var", "for", "if", "else"] "js": ["var", "for", "if", "else"]
} }
function currentline()
{
return (md.value.substring(0, md.selectionStart).match(/\n/g) || []).length;
}
function getrawline(index)
{
return md.value.split("\n")[index];
}
function applycolors() function applycolors()
{ {
if (!settings.colors) if (!settings.colors)