added: helpers on lines
This commit is contained in:
parent
d14ac88cee
commit
1c586bd669
10
main.js
10
main.js
|
@ -2084,6 +2084,16 @@ var languagekeywords = {
|
|||
"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()
|
||||
{
|
||||
if (!settings.colors)
|
||||
|
|
Loading…
Reference in New Issue