If you mean the Webmin built-in text/code editor, the font size is usually controlled by the browser’s zoom rather than Webmin itself.
Quickest method
While the Webmin editor is open:
- Increase font size:
Ctrl + + - Decrease font size:
Ctrl + - - Reset:
Ctrl + 0
This changes the size of the Webmin interface and editor.
If you want to change only the editor
Webmin versions can use different editors depending on the module/browser. If you're seeing a code editor such as CodeMirror, you can usually adjust its font with browser developer CSS or Webmin's interface settings.
If you tell me which Webmin screen you're editing in—for example:
Webmin → Tools → File Manager → Edit
or
Webmin → Others → File Manager
In Webmin → Tools → File Manager → Edit, Webmin uses a browser-based CodeMirror editor in current versions.
Easiest way to enlarge the editor font
- Open the file in Webmin → Tools → File Manager → Edit.
- Click inside the code editor.
- Hold Ctrl and scroll the mouse wheel up.
Ctrl + wheel up → larger textCtrl + wheel down → smaller text
If that doesn't change the editor text, use:
or
If you want the editor permanently larger
You can add a custom CSS rule specifically for CodeMirror. For example:
.CodeMirror {
font-size: 18px !important;
line-height: 1.5 !important;
}
For a larger programming font, try:
.CodeMirror {
font-size: 20px !important;
line-height: 1.5 !important;
}
Important: Webmin has changed its File Manager/editor implementation across versions, so I would not have you modify Webmin's files blindly.
If you give me the output of:
I can tell you exactly where to put the CSS so it persists after Webmin updates.
—I can give you the exact way to make the editor text larger without enlarging the whole Webmin interface.