Closed victorteokw closed 9 years ago
I dont know how to prevent complete of attributes in not defined attribute's value (like here - "class").
Need a way to check that we are not in "string-face" to fire attribute-complete
But you still can change ac-source order, put ac-source-html-attribute-value at begin of source list.
ac-source-html-attribute-value
ac-source-html-tag
ac-source-html-attribute
and now if value is AVAILABLE, it fire first than attribute try press space after "screen "
<link media="screen "
I will update readme and header of .el for source ORDER
:-)
I will add tests for these.
So afterwards, we can just check if tests are pass. ;D
source order is a trick, need better way, forexample checking where we are, in string or not
Yup.
added check for string face
(defun ac-html--attribute-candidates (source)
(unless (eq (get-text-property (point) 'face)
'font-lock-string-face)