Skip to content

Conversation

@VitisEK
Copy link

@VitisEK VitisEK commented Jan 8, 2026

What & why

This PR adds a dedicated conf wrap preset intended for configuration / CLI snippets:

  • Adds an editor toolbar button (with icon) that inserts <wrap conf>…</wrap> to make authoring easier.
  • Adds default styling for .wrap_conf (monospace, light background, border/padding, overflow handling) to improve readability of config blocks.
  • Makes the selector apply as .wrap_conf (instead of .dokuwiki .wrap_conf) so the styling is applied consistently in render contexts where the .dokuwiki wrapper may be absent.

Changes

  • action.php: new toolbar entry for conf (format) with images/toolbar/conf.png
  • images/toolbar/conf.png: new toolbar icon
  • style.less: new .wrap_conf styling

Usage example

<WRAP conf>
enable\\
configure terminal\\
..\\
</WRAP>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant