Requires
- module:module
Methods
(static) getLanguageColor(name) → {string}
Returns the language hex color code from the language_colors.json file
Parameters:
Name | Type | Description |
---|---|---|
name | string | Name of the language |
- Source
Returns:
Hex color code
- Type:
- string
(static) getTheme(name) → {Object}
Returns the theme object from the themes.json file
Parameters:
Name | Type | Description |
---|---|---|
name | string | Name of the theme |
- Source
Returns:
Theme object
- Type:
- Object
(static) wrapDescription(description, chars) → {string}
Wraps the description of a gist after a certain number of characters
Parameters:
Name | Type | Description |
---|---|---|
description | string | Gist description |
chars | number | Number of characters to wrap |
- Source
Returns:
Wrapped description for SVG
- Type:
- string