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 | #A8AAAB | italic |
| comment.block | #959795 | italic |
| comment.line | #959795 | italic |
| comment | #959795 | italic |
| constant.character.escape | #d09365 | — |
| constant.character | #ffd782 | — |
| constant.color.aqua | #00BCD4 | — |
| constant.color.black | #363A45 | — |
| constant.color.blue | #7260d9 | — |
| constant.color.fuchsia | #E040FB | — |
| constant.color.gray | #787B86 | — |
| constant.color.green | #4CAF50 | — |
| constant.color.lime | #00E676 | — |
| constant.color.maroon | #880E4F | — |
| constant.color.navy | #9582ea | — |
| constant.color.olive | #808000 | — |
| constant.color.orange | #FF9800 | — |
| constant.color.purple | #9C27B0 | — |
| constant.color.red | #FF5252 | — |
| constant.color.silver | #B2B5BE | — |
| constant.color.teal | #4eb9ad | — |
| constant.color.white | #FFFFFF | — |
| constant.color.yellow | #dfd577 | — |
| constant.language.boolean | #d3a4a4 | italic |
| constant.language.null | #CD9494 | italic |
| constant.language | #c6929e | italic |
| constant.numeric.binary | #d19971 | — |
| constant.numeric.float | #d19971 | — |
| constant.numeric.hex | #d19971 | — |
| constant.numeric.integer | #d19971 | — |
| constant.numeric | #e0aa6d | — |
| constant.other | #617ca3 | — |
| entity.name.annotation | #7896c9 | — |
| entity.name.class | #d5bc88 | — |
| entity.name.constant | #617ca3 | — |
| entity.name.decorator | #7896c9 | — |
| entity.name.enum | #7594B2 | — |
| entity.name.function.call | #82A3BF | — |
| entity.name.function.constructor | #82A3BF | — |
| entity.name.function.declaration | #82A3BF | — |
| entity.name.function.getter | #82A3BF | — |
| entity.name.function.method | #82A3BF | — |
| entity.name.function.setter | #82A3BF | — |
| entity.name.function | #82A3BF | — |
| entity.name.interface | #7594B2 | — |
| entity.name.module | #7594B2 | — |
| entity.name.namespace | #7594B2 | — |
| entity.name.storage.type | #6e9fA4 | italic bold |
| entity.name.type.class | #6eafa4 | — |
| entity.name.type.enum | #6eafa4 | — |
| entity.name.type.interface | #6eafa4 | — |
| entity.name.type.module | #6eafa4 | — |
| entity.name.type.namespace | #6eafa4 | — |
| entity.name.type | #6eafa4 | italic bold |
| entity.name.variable | #b99067 | — |
| entity.name | #eaeaea | — |
| entity.other.attribute-name.class | #ba7866 | — |
| entity.other.attribute-name.id | #af7575 | — |
| entity.other.attribute-name | #abbad3 | italic |
| entity.other.inherited-class | #d5bc88 | — |
| invalid.deprecated | #F4878A | italic |
| invalid.illegal | #F4878A | — |
| keyword.control.conditional | #B295BB | — |
| keyword.control.exception | #B295BB | — |
| keyword.control.export | #B295BB | — |
| keyword.control.import | #B295BB | — |
| keyword.control.loop | #9a7da3 | italic |
| keyword.control | #B295BB | — |
| keyword.operator.arithmetic | #8ABEB7 | — |
| keyword.operator.assignment | #8ABEB7 | — |
| keyword.operator.bitwise | #8ABEB7 | — |
| keyword.operator.comparison | #8ABEB7 | — |
| keyword.operator.control.class | #B295BB | — |
| keyword.operator.control.conditional | #B295BB | — |
| keyword.operator.control.directive | #B295BB | — |
| keyword.operator.control.exception | #B295BB | — |
| keyword.operator.control.export | #B295BB | — |
| keyword.operator.control.flow | #B295BB | — |
| keyword.operator.control.import | #B295BB | — |
| keyword.operator.control.interface | #B295BB | — |
| keyword.operator.control.loop | #B295BB | — |
| keyword.operator.control.module | #B295BB | — |
| keyword.operator.decrement | #8ABEB7 | — |
| keyword.operator.delete | #8ABEB7 | — |
| keyword.operator.expression | #8ABEB7 | — |
| keyword.operator.increment | #8ABEB7 | — |
| keyword.operator.instanceof | #8ABEB7 | — |
| keyword.operator.logical | #94CFC7 | — |
| keyword.operator.new | #7ab9b0 | — |
| keyword.operator.ternary | #8ABEB7 | — |
| keyword.operator.typeof | #8ABEB7 | — |
| keyword.operator.void | #a081e4 | — |
| keyword.operator | #8ABEB7 | — |
| keyword.other.unit | #C08A64 | — |
| keyword.other | #CACECB | — |
| keyword.type | #6eafa4 | — |
| markup.bold | #E9B36D | bold |
| markup.changed.diff | #A5D2A5 | — |
| markup.code | #B9BEC0 | — |
| markup.deleted.diff | #F4878A | — |
| markup.heading.1 | #CC6666 | bold |
| markup.heading.2 | #CC6666 | bold |
| markup.heading.3 | #CC6666 | bold |
| markup.heading.4 | #D37373 | — |
| markup.heading.5 | #DA8080 | — |
| markup.heading.6 | #E18D8D | — |
| markup.ignored | #787B86 | — |
| markup.inline.raw | #B9BEC0 | — |
| markup.inserted.diff | #A5D2A5 | — |
| markup.italic | #F0BC78 | italic |
| markup.link.reference | #A7D5F0 | — |
| markup.link.url | #A7D5F0 | — |
| markup.link | #A7D5F0 | — |
| markup.list.bullet | #AFB1AF | — |
| markup.list.numbered | #AFB1AF | — |
| markup.paragraph | #AFB1AF | — |
| markup.quote | #ffd280 | |
| markup.raw.block | #B9BEC0 | — |
| markup.raw | #B9BEC0 | — |
| markup.strikethrough | #D6A15E | strikethrough |
| markup.underline | #E0AA66 | underline |
| markup.untracked | #787B86 | — |
| meta.annotation | #7896c9 | — |
| meta.block-level | #BCBDBC | italic |
| meta.block.scope | #A3A5A7 | — |
| meta.block | #A3A5A7 | — |
| meta.class.declaration | #A3A5A7 | — |
| meta.class | #A3A5A7 | — |
| meta.decorator | #7896c9 | — |
| meta.diff.header | #D8DADE | bold |
| meta.directive | #B295BB | — |
| meta.export | #A3A5A7 | — |
| meta.function-call | #A3A5A7 | — |
| meta.function.declaration | #A3A5A7 | — |
| meta.function.parameters | #A3A5A7 | — |
| meta.function | #A3A5A7 | — |
| meta.import | #A3A5A7 | — |
| meta.interface.declaration | #A3A5A7 | — |
| meta.interface | #A3A5A7 | — |
| meta.module.declaration | #9e69a5 | — |
| meta.module | #9e69a5 | — |
| meta.paragraph.blockquote | #BCBDBC | italic |
| meta.paragraph.list.numbered | #AFB1AF | — |
| meta.require | #A3A5A7 | — |
| punctuation.accessor | #94CFC7 | — |
| punctuation.bracket.curly | #C5C9C6 | — |
| punctuation.bracket.round | #C5C9C6 | — |
| punctuation.bracket.square | #C5C9C6 | — |
| punctuation.bracket | #C5C9C6 | — |
| punctuation.definition.bold | #E9B36D | — |
| punctuation.definition.code | #B9BEC0 | — |
| punctuation.definition.comment | #959795 | — |
| punctuation.definition.heading | #CC6666 | — |
| punctuation.definition.italic | #F0BC78 | — |
| punctuation.definition.link | #A7D5F0 | — |
| punctuation.definition.list | #AFB1AF | — |
| punctuation.definition.quote | #ffd280 | — |
| punctuation.definition.raw | #B9BEC0 | — |
| punctuation.definition.strikethrough | #D6A15E | — |
| punctuation.definition.string.begin | #C5C9C6 | — |
| punctuation.definition.string.end | #C5C9C6 | — |
| punctuation.definition.string.template.begin | #C5C9C6 | — |
| punctuation.definition.string.template.end | #C5C9C6 | — |
| punctuation.definition.underline | #E0AA66 | — |
| punctuation.section.block | #C5C9C6 | — |
| punctuation.section.braces | #C5C9C6 | — |
| punctuation.section.brackets | #C5C9C6 | — |
| punctuation.section.group | #C5C9C6 | — |
| punctuation.section.parens | #C5C9C6 | — |
| punctuation.separator.array | #C5C9C6 | — |
| punctuation.separator.element | #C5C9C6 | — |
| punctuation.separator.key-value | #C5C9C6 | — |
| punctuation.separator.object | #C5C9C6 | — |
| punctuation.separator.parameter | #C5C9C6 | — |
| punctuation.separator | #C5C9C6 | — |
| punctuation.terminator | #C5C9C6 | — |
| storage.modifier | #afd6f7 | — |
| storage.type | #b18bcb | — |
| string.interpolated | #FFD278 | — |
| string.quoted.double | #FFD278 | — |
| string.quoted.single | #FFD278 | — |
| string.quoted.template | #e6bd6d | — |
| string.regexp | #ceaf71 | — |
| string.unquoted | #FFD278 | — |
| support.class | #d5bc88 | — |
| support.constant | #d0aa8d | — |
| support.function | #82A3BF | — |
| support.module | #b184cb | — |
| support.type | #6eafa4 | — |
| token.debug-token | #7594B2 | — |
| token.error-token | #F4878A | — |
| token.info-token | #71A1D0 | — |
| token.warn-token | #FFC86A | — |
| variable.language.constructor | #b99067 | — |
| variable.language.self | #ca8852 | — |
| variable.language.super | #b99067 | — |
| variable.language.this | #d5985c | — |
| variable.language | #b66b67 | — |
| 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}!`;
}