SOLVED Does cPanel Offer a dark theme for the code editor

durangod

Well-Known Member
May 12, 2012
483
40
78
cPanel Access Level
Website Owner
Hi, sometimes i have migranes and its hard for me to look at the bright white background of the code editor. I typically will either put on some shades or darken the display when this happens. I have seen some third party code editors that have dark backgrounds on the coding page, does cPanel offer anything like that to make the code editor background dark with colored text?

Thanks
 
  • Love
Reactions: cPanelLauren

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
9,012
762
263
Houston
cPanel Access Level
DataCenter Provider
This is a great question and something I personally use for everything (Dark Mode specifically)

You can enable dark mode in the Editor if you're using the newest Editor version. The steps to do so are as follows:

  1. Go to cPanel -> Files -> File Manager -> Select File -> Select Edit (Do not select HTML Editor)
    Edit.png
  2. Once you've opened the Editor you can select the button on the top left of the page - Open Keyboard Shortcuts which will open up to the following reference page: ajaxorg/ace which shows all available Keyboard Shortcuts.
  3. Look for the box titled Other then Show the settings menu in the action Column - this will give you the shortcut for your OS - for me it's Command,
  4. Click the Whitespace in the editor and enter the shortcut
  5. Once the settings menu is up on the right hand side you should be able to modify the theme to Twilight as follows to get a dark mode effect: darkmode_ace_editor.png

Please let me know if that helps!
 

durangod

Well-Known Member
May 12, 2012
483
40
78
cPanel Access Level
Website Owner
OMG OMG OMG OMG OMG OMG OMG... one more time OMG.... i love you hee hee sorry im am just so happy you all have this.... wow i been using cpanel for many many years and i never knew about this option.. i wonder how many more people dont know about it... maybe you all should make it a featured video or something... And so many options too.... I love them all but i chose vibrant ink.... you have saved my eyes from the blinding light dear.... thank you so very much....

im telling all my friends about this.... they will prob say yeah we knew about that lol.... then ill throw something at them and say why didnt you tell me lol hee hee

this is just so awesome......
 
  • Haha
Reactions: cPanelLauren

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
9,012
762
263
Houston
cPanel Access Level
DataCenter Provider
The ace editor is pretty new, but to be honest, I didn't know about this either until I started poking around. I wish it came up in the sidebar by default or that changing the theme was an option in the toolbar on the top, but it's not customizable that way.

I'm glad it's helping! Staring at bright white light kills my eyes as well, so I empathize with you completely.
 

durangod

Well-Known Member
May 12, 2012
483
40
78
cPanel Access Level
Website Owner
Thanks, yes i agree they should make it a menu item, and also they should make it so you can save the setting for next time. :)
 
  • Like
Reactions: cPanelLauren