Preparing search index...
The search index is not available
Prism code editor API
Prism code editor API
utils
getLineBefore
Function getLineBefore
get
Line
Before
(
text
,
position
)
:
string
Returns the string between the position and the previous \n.
Parameters
text
:
string
position
:
number
Returns
string
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
Prism code editor API
autocomplete
autocomplete/css
autocomplete/javascript
autocomplete/markup
code-folding
commands
copy-button
cursor
guides
highlight-brackets
index
match-brackets
match-tags
prism
prism/utils
search
search/api
setups
themes
tooltips
utils
Loading...
Generated using
TypeDoc
Returns the string between the position and the previous \n.