Skip to content

Commit

Permalink
$mol_textarea: add ability to override syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
thenesterov authored Dec 6, 2024
1 parent 1e3065e commit 3d834e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions textarea/textarea.view.tree
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ $mol_textarea $mol_stack
row_numb* <= row_numb* 0
sidebar_showed <= sidebar_showed
highlight <= highlight \
syntax <= syntax null
symbols_alt *string
comma \<
period \>
Expand Down
3 changes: 3 additions & 0 deletions textarea/textarea.view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ namespace $.$$ {
return index
}

syntax() {
return this.$.$mol_syntax2_md_code
}
}

}

0 comments on commit 3d834e4

Please sign in to comment.