Package org.patternfly.extension.codeeditor


package org.patternfly.extension.codeeditor
Provides the PatternFly code editor extension for displaying and editing code.

A code editor is a versatile text editor that supports displaying code with an optional header containing actions, tabs, and links. The editor can operate in read-only mode and supports custom actions such as copy-to-clipboard.

Key classes:

Usage

CodeEditor editor = codeEditor("System.out.println(\"Hello world\");")
    .addHeader(codeEditorHeader()
        .addAction(codeEditorCopyToClipboardAction()));
See Also: