Inserting optional hyphen via code?

  • Hi,

    Does anyone knows how can I insert optional hyphen via code?

    Purpose of the optional hyphen (also know as: discretionary, soft) is to mark a possible hyphenation point, 'invisible' point at which a word can be broken.

    Keyboard shortcut is Ctrl + '-' and works great.

    How do I do it in code?

    BR

    • Offizieller Beitrag

    Hi,

    This is what the shortcut does: