| CARVIEW |
Select Language
HTTP/2 301
server: nginx
date: Sun, 28 Dec 2025 07:03:23 GMT
content-type: text/html
content-length: 162
location: /api-reference/color-candidate/
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
strict-transport-security: max-age=31536000;
HTTP/2 200
server: nginx
date: Sun, 28 Dec 2025 07:03:23 GMT
content-type: text/html
last-modified: Tue, 26 Aug 2025 18:14:18 GMT
vary: Accept-Encoding
x-frame-options: SAMEORIGIN
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
content-encoding: gzip
strict-transport-security: max-age=31536000;
ColorCandidate - Nova
RESULTS:
No Results
Building Extensions
Contributing Languages
JavaScript API Reference
ColorCandidate
A possible value that may be parsed into color information
A ColorCandidate object represents a range of text within a document that could possibly be parsed into a ColorInformation object to provide live color annotations in an editor.
Color candidates can be automatically parsed from a document for any syntax tree nodes which utilize the value.color selector classes. Color assistants may then use these candidates for quicker parsing of ColorInformation objects, as opposed to parsing the entire contents of the editor.
The ColorCandidate class is not subclassable.
Added in Nova 5.
Properties
range
The range of the document where the color exists, as a Range object.
This property is settable.
text
The textual contents of the document at the candidate’s range as a String.