How can I make a theme syntax with a .ksf file (komodo)


#1

how to convert a file .ksf to have a theme syntax ?

here is my .ksf:

Version = 11

Booleans = {'caretLineVisible': False, 'preferFixed': 1, 'useSelFore': False}

CommonStyles = {'attribute name': {'fore': 8904824},
 'attribute value': {'fore': 13676752},
 'bracebad': {'back': 0, 'bold': 1, 'fore': 13421823},
 'bracehighlight': {'bold': True, 'fore': 62716},
 'classes': {'fore': 16761856},
 'comments': {'bold': False,
              'fore': 8421504,
              'italic': True,
              'useFixed': True},
 'control characters': {'back': 0, 'fore': 65535},
 'default_fixed': {'back': 3355443,
                   'bold': False,
                   'eolfilled': 0,
                   'face': 'Lucida Grande',
                   'fore': 16777215,
                   'hotspot': 0,
                   'italic': 0,
                   'size': 13,
                   'useFixed': 1},
 'default_proportional': {'back': 0,
                          'bold': 0,
                          'eolfilled': 0,
                          'face': 'Trebuchet MS',
                          'fore': 16777215,
                          'hotspot': 0,
                          'italic': 0,
                          'size': 13,
                          'useFixed': 0},
 'fold markers': {'fore': 6710886},
 'functions': {},
 'identifiers': {},
 'indent guides': {'fore': 6710886},
 'keywords': {'fore': 4279807},
 'keywords2': {'fore': 8904824},
 'linenumbers': {'back': 1052688,
                 'fore': 6710886,
                 'size': 8,
                 'useFixed': False},
 'numbers': {'fore': 2280959},
 'operators': {'fore': 6655006},
 'preprocessor': {'back': 0, 'fore': 11382189},
 'regex': {'fore': 16751415},
 'stderr': {'fore': 16777113, 'italic': 1},
 'stdin': {'fore': 16777215},
 'stdout': {'fore': 16777215},
 'stringeol': {'back': 6697728, 'eolfilled': 1},
 'strings': {'back': 2960166, 'fore': 2208401, 'size': 13},
 'tags': {'fore': 52735},
 'utf-8_fixed': {'face': 'Consolas', 'size': 13},
 'utf-8_proportional': {'face': 'Tahoma', 'size': 11},
 'variables': {}}

LanguageStyles = {'C#': {'UUIDs': {'fore': 0},
        'commentdockeyword': {'fore': 0},
        'commentdockeyworderror': {'fore': 2293759},
        'globalclass': {'fore': 7632127},
        'verbatim': {'fore': 0}},
 'C++': {'UUIDs': {'fore': 0},
         'commentdockeyword': {'fore': 0},
         'commentdockeyworderror': {'fore': 2293759},
         'globalclass': {'fore': 7632127},
         'verbatim': {'fore': 0}},
 'CSS': {'classes': {'fore': 10092390},
         'directives': {'fore': 65535},
         'identifiers': {'fore': 16761856},
         'ids': {'fore': 6711039},
         'important': {'bold': True, 'fore': 16761856},
         'operators': {'fore': 16777215},
         'tags': {'fore': 16751103},
         'values': {'fore': 6324420},
         'variables': {'fore': 16761856}},
 'CoffeeScript': {'UUIDs': {'fore': 0},
                  'commentdockeyword': {'fore': 0},
                  'commentdockeyworderror': {'fore': 2293759},
                  'globalclass': {'fore': 7632127},
                  'verbatim': {'fore': 0}},
 'Diff': {'additionline': {'fore': 7667711},
          'chunkheader': {'fore': 7632127},
          'deletionline': {'fore': 16777076},
          'diffline': {'fore': 9868950, 'italic': 1},
          'fileline': {'fore': 8904824, 'italic': 1}},
 'Errors': {'Error lines': {'fore': 16777113, 'hotspot': 1, 'italic': 1}},
 'HTML': {'attribute name': {'fore': 6711039},
          'attribute value': {'fore': 8438784},
          'attributes': {'fore': 13369361},
          'cdata': {'fore': 8421504},
          'entity references': {'bold': True, 'fore': 16761856},
          'identifiers': {'bold': False, 'italic': False},
          'operators': {'fore': 16777215},
          'pi content': {'fore': 255},
          'regex': {'fore': 8447},
          'strings': {'fore': 13421823},
          'tags': {'fore': 10066227},
          'variables': {'fore': 196}},
 'HTML5': {'tags': {'fore': 10066227}},
 'Haml': {'attribute name': {'fore': 6324420},
          'tags': {'fore': 12869760},
          'variables': {'fore': 196}},
 'IDL': {'UUIDs': {'fore': 196},
         'commentdockeyword': {'fore': 0},
         'commentdockeyworderror': {'fore': 2293759},
         'globalclass': {'fore': 7632127},
         'verbatim': {'fore': 0}},
 'Java': {'UUIDs': {'fore': 0},
          'commentdockeyword': {'fore': 0},
          'commentdockeyworderror': {'fore': 2293759},
          'globalclass': {'fore': 7632127},
          'verbatim': {'fore': 0}},
 'JavaScript': {'UUIDs': {'fore': 0},
                'commentdockeyword': {'bold': True, 'fore': 0},
                'commentdockeyworderror': {'bold': False, 'fore': 2293759},
                'default': {'fore': 3407667},
                'globalclass': {'fore': 65535},
                'identifiers': {'fore': 16763955},
                'keywords': {'fore': 6724095},
                'keywords2': {'fore': 65535},
                'operators': {'fore': 6750207},
                'regex': {'fore': 8447},
                'strings': {'fore': 16777164},
                'verbatim': {'fore': 0}},
 'PHP': {'attribute name': {'fore': 6324420},
         'attribute value': {'fore': 8438784},
         'cdata': {'fore': 8421504},
         'comments': {'fore': 10066329},
         'compound_document_defaults': {'back': 0},
         'entity references': {'bold': True, 'fore': 16761856},
         'identifiers': {'fore': 2069490},
         'keywords': {'fore': 6711039},
         'numbers': {'fore': 39423},
         'operators': {'fore': 16751103},
         'pi content': {'fore': 255},
         'regex': {'fore': 8447},
         'strings': {'back': 3355443},
         'tags': {'fore': 12869760},
         'variables': {'fore': 10092543, 'size': 13}},
 'Perl': {'data sections': {'bold': False,
                            'fore': 8421504,
                            'italic': True,
                            'useFixed': True},
          'here documents': {'bold': 1, 'fore': 8183004},
          'regex': {'fore': 8447},
          'variables': {'fore': 196}},
 'Python': {'decorators': {'fore': 16741120}, 'keywords2': {'fore': 15989931}},
 'Regex': {'charclass': {'fore': 10092543, 'italic': 1},
           'charescape': {'fore': 12303104, 'italic': 1},
           'charset_operator': {'fore': 8372175, 'size': 12},
           'comment': {'fore': 12303291, 'italic': 1},
           'default': {},
           'eol': {},
           'groupref': {'fore': 10092543, 'italic': 1},
           'grouptag': {'fore': 8372175, 'size': 8},
           'match_highlight': {'back': 6908265},
           'operator': {'fore': 8372175, 'size': 12},
           'quantifier': {'bold': 1, 'fore': 10092543, 'size': 12},
           'special': {'bold': 1, 'fore': 10092543},
           'text': {}},
 'Ruby': {'data sections': {'bold': False,
                            'fore': 8421504,
                            'italic': True,
                            'useFixed': True}},
 'XML': {'attribute name': {'fore': 12869760},
         'attribute value': {'fore': 8438784},
         'cdata': {'fore': 8421504},
         'cdata content': {'fore': 7632127},
         'cdata tags': {'fore': 7667711},
         'data': {'fore': 14474353},
         'declarations': {'fore': 13418403},
         'entity references': {'bold': True, 'fore': 16761856},
         'pi content': {'fore': 255},
         'pi tags': {'fore': 7667711},
         'prolog': {'fore': 0},
         'regex': {'fore': 8447},
         'tags': {'fore': 12869760},
         'variables': {'fore': 196},
         'xpath attributes': {'fore': 7667711},
         'xpath content': {'fore': 16741120},
         'xpath tags': {'fore': 16777204}}}

MiscLanguageSettings = {'PHP': {'globalSubLanguageBackgroundEnabled': False}}

Colors = {'activeBreakpointColor': 526573,
 'bookmarkColor': 14342664,
 'callingLineColor': 16776960,
 'caretFore': 16777215,
 'caretLineBack': 6710886,
 'currentLineColor': 16776960,
 'edgeColor': 3355443,
 'foldMarginColor': 0,
 'pendingBreakpointColor': 569096,
 'selBack': 5328448,
 'selFore': 16777215,
 'whitespaceColor': 16777215}

Indicators = {'find_highlighting': {'alpha': 100,
                       'color': 1110271,
                       'draw_underneath': True,
                       'style': 7},
 'linter_error': {'alpha': 100,
                  'color': 255,
                  'draw_underneath': True,
                  'style': 3},
 'linter_warning': {'alpha': 100,
                    'color': 32768,
                    'draw_underneath': True,
                    'style': 3},
 'multiple_caret_area': {'alpha': 100,
                         'color': 13369446,
                         'draw_underneath': True,
                         'style': 6},
 'soft_characters': {'alpha': 100,
                     'color': 13209,
                     'draw_underneath': False,
                     'style': 6},
 'tabstop_current': {'alpha': 100,
                     'color': 16724838,
                     'draw_underneath': True,
                     'style': 7},
 'tabstop_pending': {'alpha': 100,
                     'color': 13369446,
                     'draw_underneath': True,
                     'style': 6},
 'tag_matching': {'alpha': 100,
                  'color': 13395558,
                  'draw_underneath': True,
                  'style': 7}}

#2

Are you looking for an automatic conversion? Or just more information on how to write your own theme?


#3

I made my own theme pakage with the generator of the atom, but it is very difficult for me to change the colors of elements in file editing colors.less.
So I would like to have an automatic conversion to.