Pine Script VS Code
Publisher: Kai GouthroThemes in package: 20
Pine Script Language Server
Pine Script Language Server
Full workbench mockup using this variant's colors and tokenColors.
Loading...
Workbench UI color keys from the theme JSON colors map.
TextMate scopes and font styles (syntax highlighting rules).
| scope | foreground | fontStyle |
|---|---|---|
| comment.block.documentation | #008080 | italic |
| comment.block | #008080 | italic |
| comment.line | #85c986 | italic |
| comment | #85c986 | italic |
| constant.character.escape | #FF9800 | — |
| constant.character | #FF9800 | — |
| constant.color.aqua | #00BCD4 | — |
| constant.color.black | #EEEEEE | — |
| constant.color.blue | #87CEEB | — |
| constant.color.fuchsia | #FFB6C1 | — |
| constant.color.gray | #EEEEEE | — |
| constant.color.green | #4bb438 | — |
| constant.color.lime | #4bb438 | — |
| constant.color.maroon | #d37272 | — |
| constant.color.navy | #0D47A1 | — |
| constant.color.olive | #c7e492 | — |
| constant.color.orange | #FF9800 | — |
| constant.color.purple | #9C27B0 | — |
| constant.color.red | #d37272 | — |
| constant.color.silver | #EEEEEE | — |
| constant.color.teal | #008080 | — |
| constant.color.white | #FFFFFF | — |
| constant.color.yellow | #FFCC80 | — |
| constant.language.boolean | #d37272 | italic |
| constant.language.null | #d37272 | italic |
| constant.language | #d37272 | italic |
| constant.numeric.binary | #FF9800 | — |
| constant.numeric.float | #FF9800 | — |
| constant.numeric.hex | #FF9800 | — |
| constant.numeric.integer | #FF9800 | — |
| constant.numeric | #FF9800 | — |
| constant.other | #d37272 | — |
| entity.name.annotation | #FF9800 | — |
| entity.name.class | #87CEEB | — |
| entity.name.constant | #87CEEB | — |
| entity.name.decorator | #FF9800 | — |
| entity.name.enum | #87CEEB | — |
| entity.name.function.call | #FFCC80 | — |
| entity.name.function.constructor | #FFCC80 | — |
| entity.name.function.declaration | #FFCC80 | — |
| entity.name.function.getter | #FFCC80 | — |
| entity.name.function.method | #FFCC80 | — |
| entity.name.function.setter | #FFCC80 | — |
| entity.name.function | #FFCC80 | — |
| entity.name.interface | #87CEEB | — |
| entity.name.module | #87CEEB | — |
| entity.name.namespace | #87CEEB | — |
| entity.name.storage.type | #00BCD4 | italic bold |
| entity.name.type.class | #87CEEB | — |
| entity.name.type.enum | #87CEEB | — |
| entity.name.type.interface | #87CEEB | — |
| entity.name.type.module | #87CEEB | — |
| entity.name.type.namespace | #87CEEB | — |
| entity.name.type | #87CEEB | italic bold |
| entity.name.variable | #FFDAB9 | — |
| entity.name | #FFFFFF | — |
| entity.other.attribute-name.class | #FFB6C1 | — |
| entity.other.attribute-name.id | #FFB6C1 | — |
| entity.other.attribute-name | #FF9800 | italic |
| entity.other.inherited-class | #87CEEB | — |
| invalid.deprecated | #d37272 | italic |
| invalid.illegal | #d37272 | — |
| keyword.control.conditional | #00BCD4 | — |
| keyword.control.exception | #00BCD4 | — |
| keyword.control.export | #00BCD4 | — |
| keyword.control.import | #00BCD4 | — |
| keyword.control.loop | #00BCD4 | italic |
| keyword.control | #00BCD4 | — |
| keyword.operator.arithmetic | #FFFFFF | — |
| keyword.operator.assignment | #FFFFFF | — |
| keyword.operator.bitwise | #FFFFFF | — |
| keyword.operator.comparison | #FFFFFF | — |
| keyword.operator.control.class | #00BCD4 | — |
| keyword.operator.control.conditional | #00BCD4 | — |
| keyword.operator.control.directive | #00BCD4 | — |
| keyword.operator.control.exception | #00BCD4 | — |
| keyword.operator.control.export | #00BCD4 | — |
| keyword.operator.control.flow | #00BCD4 | — |
| keyword.operator.control.import | #00BCD4 | — |
| keyword.operator.control.interface | #00BCD4 | — |
| keyword.operator.control.loop | #00BCD4 | — |
| keyword.operator.control.module | #00BCD4 | — |
| keyword.operator.decrement | #FFFFFF | — |
| keyword.operator.delete | #FFFFFF | — |
| keyword.operator.expression | #FFFFFF | — |
| keyword.operator.increment | #FFFFFF | — |
| keyword.operator.instanceof | #FFFFFF | — |
| keyword.operator.logical | #FFFFFF | — |
| keyword.operator.new | #00BCD4 | — |
| keyword.operator.ternary | #FFFFFF | — |
| keyword.operator.typeof | #FFFFFF | — |
| keyword.operator.void | #00BCD4 | — |
| keyword.operator | #FFFFFF | — |
| keyword.other.unit | #FF9800 | — |
| keyword.other | #EEEEEE | — |
| keyword.type | #87CEEB | — |
| markup.bold | #FFCC80 | bold |
| markup.changed.diff | #c7e492 | — |
| markup.code | #EEEEEE | — |
| markup.deleted.diff | #d37272 | — |
| markup.heading.1 | #FF9800 | bold |
| markup.heading.2 | #FF9800 | bold |
| markup.heading.3 | #FF9800 | bold |
| markup.heading.4 | #FF9800 | — |
| markup.heading.5 | #FF9800 | — |
| markup.heading.6 | #FF9800 | — |
| markup.ignored | #008080 | — |
| markup.inline.raw | #EEEEEE | — |
| markup.inserted.diff | #c7e492 | — |
| markup.italic | #FFDAB9 | italic |
| markup.link.reference | #87CEEB | — |
| markup.link.url | #87CEEB | — |
| markup.link | #87CEEB | — |
| markup.list.bullet | #EEEEEE | — |
| markup.list.numbered | #EEEEEE | — |
| markup.paragraph | #EEEEEE | — |
| markup.quote | #FFCC80 | |
| markup.raw.block | #EEEEEE | — |
| markup.raw | #EEEEEE | — |
| markup.strikethrough | #FFDAB9 | strikethrough |
| markup.underline | #FFDAB9 | underline |
| markup.untracked | #008080 | — |
| meta.annotation | #FF9800 | — |
| meta.block-level | #EEEEEE | italic |
| meta.block.scope | #EEEEEE | — |
| meta.block | #EEEEEE | — |
| meta.class.declaration | #EEEEEE | — |
| meta.class | #EEEEEE | — |
| meta.decorator | #FF9800 | — |
| meta.diff.header | #FFFFFF | bold |
| meta.directive | #00BCD4 | — |
| meta.export | #EEEEEE | — |
| meta.function-call | #EEEEEE | — |
| meta.function.declaration | #EEEEEE | — |
| meta.function.parameters | #EEEEEE | — |
| meta.function | #EEEEEE | — |
| meta.import | #EEEEEE | — |
| meta.interface.declaration | #EEEEEE | — |
| meta.interface | #EEEEEE | — |
| meta.module.declaration | #0D47A1 | — |
| meta.module | #0D47A1 | — |
| meta.paragraph.blockquote | #EEEEEE | italic |
| meta.paragraph.list.numbered | #EEEEEE | — |
| meta.require | #EEEEEE | — |
| punctuation.accessor | #FFFFFF | — |
| punctuation.bracket.curly | #EEEEEE | — |
| punctuation.bracket.round | #EEEEEE | — |
| punctuation.bracket.square | #EEEEEE | — |
| punctuation.bracket | #EEEEEE | — |
| punctuation.definition.bold | #FFCC80 | — |
| punctuation.definition.code | #EEEEEE | — |
| punctuation.definition.comment | #008080 | — |
| punctuation.definition.heading | #FF9800 | — |
| punctuation.definition.italic | #FFDAB9 | — |
| punctuation.definition.link | #87CEEB | — |
| punctuation.definition.list | #EEEEEE | — |
| punctuation.definition.quote | #FFCC80 | — |
| punctuation.definition.raw | #EEEEEE | — |
| punctuation.definition.strikethrough | #FFDAB9 | — |
| punctuation.definition.string.begin | #c7e492 | — |
| punctuation.definition.string.end | #c7e492 | — |
| punctuation.definition.string.template.begin | #c7e492 | — |
| punctuation.definition.string.template.end | #c7e492 | — |
| punctuation.definition.underline | #FFDAB9 | — |
| punctuation.section.block | #EEEEEE | — |
| punctuation.section.braces | #EEEEEE | — |
| punctuation.section.brackets | #EEEEEE | — |
| punctuation.section.group | #EEEEEE | — |
| punctuation.section.parens | #EEEEEE | — |
| punctuation.separator.array | #EEEEEE | — |
| punctuation.separator.element | #EEEEEE | — |
| punctuation.separator.key-value | #EEEEEE | — |
| punctuation.separator.object | #EEEEEE | — |
| punctuation.separator.parameter | #EEEEEE | — |
| punctuation.separator | #EEEEEE | — |
| punctuation.terminator | #EEEEEE | — |
| storage.modifier | #FF9800 | — |
| storage.type | #9d97de | — |
| string.interpolated | #c7e492 | — |
| string.quoted.double | #c7e492 | — |
| string.quoted.single | #c7e492 | — |
| string.quoted.template | #c7e492 | — |
| string.regexp | #c7e492 | — |
| string.unquoted | #c7e492 | — |
| support.class | #87CEEB | — |
| support.constant | #FF9800 | — |
| support.function | #FFCC80 | — |
| support.module | #506e9c | — |
| support.type | #87CEEB | — |
| token.debug-token | #87CEEB | — |
| token.error-token | #d37272 | — |
| token.info-token | #00BCD4 | — |
| token.warn-token | #FF9800 | — |
| variable.language.constructor | #FFDAB9 | — |
| variable.language.self | #FFDAB9 | — |
| variable.language.super | #FFDAB9 | — |
| variable.language.this | #FFDAB9 | — |
| variable.language | #FFDAB9 | — |
| variable.other.constant.instance | #87CEEB | bold |
| variable.other.constant | #87CEEB | bold |
| variable.other.diff | #FFDAB9 | — |
| variable.other.global | #FFDAB9 | — |
| variable.other.instance | #FFDAB9 | — |
| variable.other.member | #FFDAB9 | — |
| variable.other.object | #FFDAB9 | — |
| variable.other.property | #FFDAB9 | — |
| variable.other.readwrite.instance | #FFDAB9 | — |
| variable.other.readwrite | #FFDAB9 | — |
| variable.other | #FFDAB9 | — |
| variable.parameter | #c7e492 | — |
TypeScript sample highlighted with this variant's colors and tokenColors.
Loading...
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}
export interface User {
id: string;
name: string;
role: "admin" | "member";
tags: string[];
}
/**
* Fetch user data by ID
* @param id
* @returns User object or null if ID is invalid
*/
export async function fetchUser(id: string): Promise<User | null> {
if (!id) {
return null;
}
const response = await fetch(`/api/users/${id}`, {
method: "GET",
headers: { Accept: "application/json" },
});
if (!response.ok) {
throw new Error(`HTTP ${response.status}`);
}
return (await response.json()) as User;
}
function greet(user: User): string {
// Simple greeting function that uses the user's name
return `Hello, ${user.name}!`;
}