문제

I'm using the Tern plugin for CodeMirror, which adds intellisense features to the editor (i.e. pops up inline hint-labels).

I want to change the hint-labels style, how to do so?

도움이 되었습니까?

해결책

Tern attaches CSS classnames to the hint box, you can utilize them to style it, e.g.:

.CodeMirror-Tern-tooltip:before {
    content: url('http://n5.nabble.com/images/smiley/smiley_thinking.gif');
    width: 20px;
    height: 20px;
}

… which will result in this:

tern hint custom styling

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top