I was two problems with Codemirror :
- wrong align between line numbers and lines
- don’t support code php in bold ( my eyes are bad and old :s )
how to solve : rules CSS
- margin and padding top of containers line numbers and edit box are not same and incoherent, height lines too
must change
’padding: 4px 0.3em 4px 0;’ in
’padding: 0.4em 0.3em 0.4em 0;’ in file /assets/components/codemirror/css/cm.css
and put
’line-height: 1.2em;’ in /assets/components/codemirror/cm/contrib/php/css/phpcolors.css
in fact margin top (margin-top + padding-top),font, font-size and line height must be same in cm.css and phpcolors.css for CSS class .CodeMirror-line-numbers and .editbox
- for eyes only delete or comment ’font-weight: bold;’ in file phpcolors.css
for me i make this on these files and is perfect now for line align
.CodeMirror-line-numbers {
...
font-family: monospace;
font-size: 10pt;
padding: 0.4em 0.3em 0.4em 0;
line-height: 1.2em;
...
}
.editbox {
margin: .4em;
padding: 0;
font-family: monospace;
font-size: 10pt;
line-height:1.2em;
}
PS : it will be great to make own theme without destroy then when update plugin codemirror ... how do this please ?