Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
-4
rated 0 times [  3] [ 7]  / answers: 1 / hits: 16813  / 7 Years ago, thu, december 7, 2017, 12:00:00

I am trying to change font-family and font-size of my CodeMirror editor. I tried changing it by setting the according CSS attributes but it does not seem to work for me:



.codemirror-textarea {
font-family: Arial, monospace;
font-size: 16px;
}


Do I have to import something in order to achieve this or might I have to edit the libraries CSS file directly? What am I doing wrong?


More From » css

 Answers
1

Try setting the CSS on:



.CodeMirror {
font-family: Arial, monospace;
font-size: 16px;
}


This selects the element that contains all the formatted code.


[#55731] Tuesday, December 5, 2017, 7 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
brodyfrancisi

Total Points: 1
Total Questions: 102
Total Answers: 89

Location: Marshall Islands
Member since Mon, May 31, 2021
3 Years ago
brodyfrancisi questions
;