How to auto-capitalize first char of new sentence?

    • Offizieller Beitrag

    Re: How to auto-capitalize first char of new sentence

    This code uses the BeforeInitializePar. It expects the start of a sentence at the start of the paragraph and after .?! + space.

    The line
    if WPRichText1.ActiveParagraph = par then
    avoids that the complete text is updated after loading.

    • Offizieller Beitrag

    This following code is a new approach. It seems to work pretty nice and allows it to undo the auto change - something I find important. It handles abbreviations!