How to highlight the first 5~6 words in each sentence.

koo's Avatar

koo

04 Jan, 2018 08:48 PM

I know there is highlight option in proofreading. I can also use regular express with / /, but I don't know how to highlight the first some words.

  1. Support Staff 1 Posted by Brett on 04 Jan, 2018 10:27 PM

    Brett's Avatar

    It would be through regular expressions, but Marked's highlighting
    engine isn't advanced enough to handle such general queries without
    using excessive memory. Basically you'd want to search for a terminator
    [?!.] followed by a space and then groupings of non-terminators after.
    But after a little testing, that's not working properly with the
    highlighter.

    -Brett

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac