The Code section on the Blocks screen.

A block’s own setting in the editor always wins over these defaults.

Free Settings

SettingDefaultWhat it does
Copy ButtonOnShows a Copy to clipboard button on code blocks. Off: no button unless a block turns it on.
Line NumbersOffNumbers the lines of code blocks by default.
Wrap Long LinesOffWraps long lines instead of scrolling sideways.
Language LabelOffShows the language in the top left corner. Add a class such as language-php to the block.

The copy button has always been on, so it stays on until you switch it off.

Pro Settings

These need Aegis Pro. Without it the toggles are locked and marked Pro Feature.

SettingHow you use it
Collapse Long BlocksAutomatic. A block over 20 lines is cut off with a Show more button underneath.
Filename BarStart the block with a comment line such as // file: functions.php. It becomes a bar above the code, and the line is not shown or copied.
Highlight LinesAfter the filename line, add a comment such as // highlight: 3,7-9. Those lines get a background. Line numbers count the code that is shown.
Download ButtonAdds a button that saves the block as a file, named after the filename bar, or code.<language>, or code.txt.
Copy Button PositionAdd the class copy-left or copy-bottom to the block to move the copy button.

The directive comments can start with //, #, /*, or <!--. The filename line comes first, then the highlight line. If a setting is off, its comment line is shown as ordinary code.

Code Block Pro and Syntax Highlighting

These settings are for the core Code block. If Code Block Pro or Syntax Highlighting Code Block is active, those blocks have their own settings. Connect them on Aegis → Integrations.

For Developers

Next Steps