Only enable the text editor when having a model open

Add basic syntax highlighting

(0) -300 -100 -30 -10 -2 +2 +10 +30 tip

mercurial