Menu

User defined languages feature in 4.7.5

2008-02-02
2012-11-13
  • Nobody/Anonymous

    Has this feature changed in recent release?
    I'm trying to do the stuff described in http://notepad-plus.sourceforge.net/uk/UserLanguageDefineSystem-HOWTO.php but do not see corresponding GUI items in 4.7.5 I've downloaded today. And also i see nothing like userDefineLang.xml just langs.xml and langs.model.xml
    Information on the site is not up-to-date?

     
    • Nobody/Anonymous

      you have to define your own language in view - userdefine language

      or

      zip-installer   -> %programfiles%\notepad++\userdefinelang.xml
      setup-installer -> %appdata%\notepad++\userdefinelang.xml

       
    • Nobody/Anonymous

      Well, the question was - why there is no userdefinelang.xml in my installation (but there is such menu item in notepad++) and why standard languages are in 1 file? And there is no "user defined language" in style configurator...
      I've donloaded http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_cobol.xml and cut off "_cobol" (I've tried to do the same without doing this step), created new file, selected "user defined", put some COBOL keywords and they are not highlighted, as I've said I do not see anything like "cobol" or "user defined" in style configurator so I don't understand how set highlighting colors.

      And also there are following lines in langs.xml :
      <!--
              <Language name="" ext="" commentLine="" commentStart="" commentEnd="">
                  <Keywords name="instre1"></Keywords>
                  <Keywords name="instre2"></Keywords>
                  <Keywords name="type1"></Keywords>
                  <Keywords name="type2"></Keywords>
                  <Keywords name="type3"></Keywords>
                  <Keywords name="type4"></Keywords>
              </Language>
      -->
      and in langs.model.xml :
      <!--
              <Language name="" ext="" commentLine="" commentStart="" commentEnd="">
                  <Keywords name="instre1"></Keywords>
                  <Keywords name="instre2"></Keywords>
                  <Keywords name="type1"></Keywords>
                  <Keywords name="type2"></Keywords>
                  <Keywords name="type3"></Keywords>
                  <Keywords name="type4"></Keywords>
              </Language>
      -->

      It looks like the schema was changed a lot...
      Or I do not understand how notepad++ works

       
    • comiv

      comiv - 2008-02-04

      Hello !
      Hope this can help you.
      When you install N++, there is no userDefineLang.xml.
      You have to define your own language.
      1) Open User Define dialog box (21th icon in toolbar from left side)
      2) Click on Create New..., give a name and then you will have a userDefineLang.xml file.

      Regards
      comiv

       
      • Nobody/Anonymous

        >
        > 1) Open User Define dialog box (21th icon in toolbar from left side)
        >

        Thanks "comiv" , Thanks, Thanks

        I was looking for this feature, but I did't find how to activate it!!!!!!!

        Thanks, Thanks, Thanks

         
    • Nobody/Anonymous

      Wow, thanks a lot, comiv!

       
    • Nobody/Anonymous

      it's also in view>user define dialog>

       
    • Nobody/Anonymous

      There is a section on the operators ta called delimiter1 and delimiter2 that isn't explained in that tutorial.