formatBackquoteToCode top-level property

CharacterShortcutEvent formatBackquoteToCode
final

format the text surrounded by single backquote to code

  • support
    • desktop
    • mobile
    • web

Implementation

final CharacterShortcutEvent formatBackquoteToCode = CharacterShortcutEvent(
  key: 'format the text surrounded by single backquote to code',
  character: _backquote,
  handler: (editorState) async => handleFormatByWrappingWithSingleCharacter(
    editorState: editorState,
    character: _backquote,
    formatStyle: FormatStyleByWrappingWithSingleChar.code,
  ),
);