import vim syntax to notepad++

  • hello,
    i found a vim syntax that i really want to use in notepad++, is there any way to make around and use it in notepad++?
    best regards,

  • @franco-otaola ,

    The vim syntax files are very different beasts from Notepad++ syntax-highlighter style-configurator themes or Notepad++ UDL definitions; as far as I know, there is no converter between them.

    For Notepad++ builtin lexers, the style-configurator settings change colors and on some keyword types can add extra keywords to the list. Similarly, UDL defines lists of keywords and operators, and sets the colors for those and a few other things.

    But in the native Notepad++ interface, you cannot do things like syntax match from a vim syntax file, which defines a new regex to determine when a number or operator or keyword should be considered a match.

    If all you want to do is grab the lists of syntax keyword xxx statements, you could grab those, and paste the values from each differently-named xxx into one of the 8 groups of keywords in the Language > User Defined Language > Define Your Language dialog, that is easily doable.

Log in to reply