-- Copyright 2007-2013 Mitchell mitchell.att.foicica.com. See LICENSE. -- Terminal theme for Textadept. -- Contributions by Ana Balan. local buffer = buffer local property, property_int = buffer.property, buffer.property_int -- Normal colors. property['color.black'] = 0x000000 property['color.red'] = 0x000080 property['color.green'] = 0x008000 property['color.yellow'] = 0x008080 property['color.blue'] = 0x800000 property['color.magenta'] = 0x800080 property['color.cyan'] = 0x808000 property['color.white'] = 0xC0C0C0 -- Light colors. (16 color terminals only.) -- These only apply to 16 color terminals. For other terminals, set the -- style's `bold` attribute to use the light color variant. property['color.light_black'] = 0x404040 property['color.light_red'] = 0x0000FF property['color.light_green'] = 0x00FF00 property['color.light_yellow'] = 0x00FFFF property['color.light_blue'] = 0xFF0000 property['color.light_magenta'] = 0xFF00FF property['color.light_cyan'] = 0xFFFF00 property['color.light_white'] = 0xFFFFFF -- Default style. property['style.default'] = 'fore:$(color.white),back:$(color.black)' -- Token styles. property['style.nothing'] = '' property['style.class'] = 'fore:$(color.yellow)' property['style.comment'] = 'fore:$(color.black),bold' property['style.constant'] = 'fore:$(color.red)' property['style.error'] = 'fore:$(color.red),bold' property['style.function'] = 'fore:$(color.blue)' property['style.keyword'] = 'fore:$(color.white),bold' property['style.label'] = 'fore:$(color.red),bold' property['style.number'] = 'fore:$(color.cyan)' property['style.operator'] = 'fore:$(color.yellow)' property['style.regex'] = 'fore:$(color.green),bold' property['style.string'] = 'fore:$(color.green)' property['style.preprocessor'] = 'fore:$(color.magenta)' property['style.type'] = 'fore:$(color.magenta),bold' property['style.variable'] = 'fore:$(color.blue),bold' property['style.whitespace'] = '' property['style.embedded'] = '$(style.tag),back:$(color.black),bold' property['style.identifier'] = '$(style.nothing)' -- Predefined styles. property['style.linenumber'] = '$(style.default)' property['style.bracelight'] = 'fore:$(color.black),back:$(color.white)' property['style.bracebad'] = 'fore:$(color.red),bold' property['style.controlchar'] = '$(style.nothing)' property['style.indentguide'] = '$(style.nothing)' property['style.calltip'] = '$(style.default)' -- Multiple Selection and Virtual Space --buffer.additional_sel_alpha = --buffer.additional_sel_fore = --buffer.additional_sel_back = --buffer.additional_caret_fore = -- Caret and Selection Styles. --buffer:set_sel_fore(true, property_int['color.white']) --buffer:set_sel_back(true, property_int['color.black']) --buffer.sel_alpha = --buffer.caret_fore = property_int['color.black'] --buffer.caret_line_back = --buffer.caret_line_back_alpha = -- Fold Margin. --buffer:set_fold_margin_colour(true, property_int['color.white']) --buffer:set_fold_margin_hi_colour(true, property_int['color.white']) -- Long Lines. buffer.edge_colour = property_int['color.white']