Special config commands

include [file path]
Includes an external config file.
exec [command]
Executes a command.
bind [name] [shortcut] [command]
Binds a command to an accelerator (keyboard shortcut).
Example: bind "Compile" "CTRL+F9" "!gcc %"

Full config variable list list

show-tab-bar
Whether or not to show the tab bar.
Type:dtk_bool32
Default Value: true
show-menu-bar
Whether or not to show the menu bar.
Type:dtk_bool32
Default Value: true
auto-hide-cmd-bar
Whether or not to show the command bar at all times. If this is set to false it will be shown only when it has keyboard focus.
Type:dtk_bool32
Default Value: false
enable-auto-reload
Whether or not dirty files will automatically be reloaded. When disabled, reloading requires manual reloading via the "reload" command.
Type:dtk_bool32
Default Value: true
use-default-window-pos
Internal use only. Used to determine whether or not the operation system should decide where to place the main window.
Type:dtk_bool32
Default Value: true
window-pos-x
The position of the window on the x axis.
Type:int
Default Value: 0
window-pos-y
The position of the window on the y axis.
Type:int
Default Value: 0
window-width
The width of the window
Type:int
Default Value: 1280
window-height
The height of the window.
Type:int
Default Value: 720
window-maximized
Whether or not the window is maximized.
Type:dtk_bool32
Default Value: false
ui-scale
The scale of the UI. The total scale of UI elements is equal to the DPI scaling multiplied by this value.
Type:float
Default Value: 1
ui-font
The default font to use for general UI elements. This will act as the default font in the event that a font fails to load.
Type:font
Default Value: system-font-ui
cmdbar-bg-color
The background color of the command bar.
Type:color
Default Value: 64 64 64
cmdbar-bg-color-active
The background color of the command bar while it's got the keyboard focus.
Type:color
Default Value: 128 51 0
cmdbar-tb-font
The font to use in the text box of the command bar.
Type:font
Default Value: system-font-mono
cmdbar-text-color
The color of the text in the command bar while in it's default state.
Type:color
Default Value: 224 224 224
cmdbar-text-color-active
The color of the text in the command bar while in it's focused state.
Type:color
Default Value: 224 224 224
cmdbar-padding-horz
The amount of padding to apply to the command bar on the left and right sides.
Type:float
Default Value: 2
cmdbar-padding-vert
The amount of padding to apply to the command bar on the top and bottom sides.
Type:float
Default Value: 2
cmdbar-popup-bg-color
The background color of the auto-complete popup box for the command bar.
Type:color
Default Value: 224 224 224
cmdbar-popup-font
The font to use in the auto-complete popup box for the command bar.
Type:font
Default Value: system-font-ui
cmdbar-popup-border-width
The width of the border for the auto-complete popup box.
Type:float
Default Value: 2
cmdbar-popup-padding
The padding to apply between the border and the contents of the auto-complete popup box for the command bar.
Type:float
Default Value: 2
tabgroup-bg-color
The background color of tab groups. This will be shown when there are no tabs open in the group.
Type:color
Default Value: 48 48 48
tab-bg-color-inactive
The background color of tabs while inactive.
Type:color
Default Value: 58 58 58
tab-bg-color-active
The background color of tabs while active.
Type:color
Default Value: 16 92 160
tab-bg-color-hovered
The background color of tabs while hovered.
Type:color
Default Value: 32 128 192
tab-font
The font to use on tabs.
Type:font
Default Value: system-font-ui
tab-text-color
The color of the text on tabs.
Type:color
Default Value: 224 224 224
tab-text-color-active
The color of the text on tabs while active.
Type:color
Default Value: 224 224 224
tab-text-color-hovered
The color of the text on tabs while hovered.
Type:color
Default Value: 224 224 224
tab-padding
The amount of padding to apply to all sides of a tab.
Type:float
Default Value: 4
tab-show-close-button
Whether or not to show the close button on tabs.
Type:dtk_bool32
Default Value: true
tab-close-button-color
The color of the close button while inactive.
Type:color
Default Value: 58 58 58
tab-close-button-color-tab-hovered
The color of the close button when the tab is hovered, but the cursor is not over the close button.
Type:color
Default Value: 200 200 200
tab-close-button-color-tab-active
The color of the close button when the tab is active, but the cursor is not over the close button.
Type:color
Default Value: 200 200 200
tab-close-button-color-hovered
The color of the close button while hovered.
Type:color
Default Value: 255 96 96
tab-close-button-color-pressed
The color of the close button while pressed.
Type:color
Default Value: 192 32 32
texteditor-font
The font to use in text editors.
Type:font
Default Value: system-font-mono
texteditor-text-color
The base color of the text in a text editor. Note that syntax highlighting is independant of this variable.
Type:color
Default Value: 224 224 224
texteditor-bg-color
The background color to use in text editors.
Type:color
Default Value: 48 48 48
texteditor-cursor-color
The color of the caret/cursor in text editors.
Type:color
Default Value: 224 224 224
texteditor-cursor-width
The thickness of the caret/cursor in text editors.
Type:float
Default Value: 1
texteditor-selection-bg-color
The background color to use for selected text.
Type:color
Default Value: 64 128 192
texteditor-active-line-color
The background color of the line that the caret is currently sitting on in a text editor.
Type:color
Default Value: 40 40 40
texteditor-show-line-numbers
Whether or not to show line numbers.
Type:dtk_bool32
Default Value: false
texteditor-line-numbers-color
The color of the line numbers text.
Type:color
Default Value: 80 160 192
texteditor-line-numbers-bg-color
The color of the background of the line numbers.
Type:color
Default Value: 48 48 48
texteditor-line-numbers-padding
The padding between the line numbers and the text in the text editor.
Type:float
Default Value: 16
texteditor-sb-track-color
The color of the track of the scroll bars on text editors.
Type:color
Default Value: 64 64 64
texteditor-sb-thumb-color
The color of the thumb of the scroll bars on text editors.
Type:color
Default Value: 92 92 92
texteditor-sb-thumb-color-hovered
The color of the thumb of the scroll bars on text editors while hovered.
Type:color
Default Value: 144 144 144
texteditor-sb-thumb-color-pressed
The color of the thumb of the scroll bars on text editors while pressed.
Type:color
Default Value: 180 180 180
texteditor-sb-size
The thickness of the scrollbars on text editors.
Type:float
Default Value: 16
texteditor-show-scrollbar-horz
Whether or not to show the horizontal scrollbar on text editors.
Type:dtk_bool32
Default Value: true
texteditor-show-scrollbar-vert
Whether or not to show the vertical scrollbar on text editors.
Type:dtk_bool32
Default Value: true
texteditor-enable-excess-scrolling
Whether or not the text editor can scroll past the last line.
Type:dtk_bool32
Default Value: true
texteditor-enable-tabs-to-spaces
Whether or not tabs are converted to spaces.
Type:dtk_bool32
Default Value: false
texteditor-tab-size-in-spaces
The size of tabs in spaces.
Type:int
Default Value: 4
texteditor-scale
The scale/zoom to use in text editors.
Type:float
Default Value: 1
texteditor-enable-auto-indent
Whether or not automatic indenting is enabled for when the user creates a new line.
Type:dtk_bool32
Default Value: true
texteditor-enable-word-wrap
Whether or not word wrap should be enabled.
Type:dtk_bool32
Default Value: true
texteditor-enable-drag-and-drop
Whether or not drag-and-drop should be enabled for text editors.
Type:dtk_bool32
Default Value: false
cpp-comment-text-color
The color to use for C/C++ comments.
Type:color
Default Value: 64 192 92
cpp-string-text-color
The color to use for C/C++ strings.
Type:color
Default Value: 192 92 64
cpp-keyword-text-color
The color to use for C/C++ keywords.
Type:color
Default Value: 64 160 255
Copyright © 2019 David Reid
Developed by David Reid - davidreidsoftware@gmail.com