Community
    • Login

    Lang File Import Fails

    Scheduled Pinned Locked Moved General Discussion
    13 Posts 5 Posters 4.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • steadybrightS
      steadybright
      last edited by steadybright

      Hello!

      I’m a long time, happy user of NPP, although I’ve recently encountered a problem I’ve not been able to resolve.

      I attempted to add nginx configuration to the selection of NPP languages, following the instructions here:
      http://docs.notepad-plus-plus.org/index.php/User_Defined_Language_Files

      …using the nginx configuration file from the same page.

      With every import attempt, NPP responds with “Fail to import”.

      I also attempted manual install of the lang file as well, but when User Defined language is selected, no style is seen in my nginx.conf file in NPP. (I also attempted this in the <user>\AppData\Roaming\Notepad++ folder per the instructions, but still not successful.)

      I also attempted to import the XML file while running NPP from my administrator account. Same result: Fail to import.

      Here’s my debug info:
      Notepad++ v7.5.9 (64-bit)
      Build time : Oct 14 2018 - 15:19:55
      Path : C:\Program Files\Notepad++\notepad++.exe
      Admin mode : OFF
      Local Conf mode : OFF
      OS : Windows 10 (64-bit)
      Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll

      Thank you for your help!

      buzz

      EkopalypseE 1 Reply Last reply Reply Quote 2
      • EkopalypseE
        Ekopalypse @steadybright
        last edited by

        @steadybright

        give this a try - hopefully correctly converted to UDL 2.1 format

        <NotepadPlus>
            <UserLang name="Nginx" ext="conf" udlVersion="2.1">
                <Settings>
                    <Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
                    <Prefix Keywords1="yes" Keywords2="yes" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
                </Settings>
                <KeywordLists>
                    <Keywords name="Comments">03 03 04 04 00# 01 02</Keywords>
                    <Keywords name="Numbers, prefix1"></Keywords>
                    <Keywords name="Numbers, prefix2"></Keywords>
                    <Keywords name="Numbers, extras1"></Keywords>
                    <Keywords name="Numbers, extras2"></Keywords>
                    <Keywords name="Numbers, suffix1"></Keywords>
                    <Keywords name="Numbers, suffix2"></Keywords>
                    <Keywords name="Numbers, range"></Keywords>
                    <Keywords name="Operators1">&apos; &quot; * ; [ ] ^ ~ =</Keywords>
                    <Keywords name="Operators2"></Keywords>
                    <Keywords name="Folders in code1, open">{</Keywords>
                    <Keywords name="Folders in code1, middle"></Keywords>
                    <Keywords name="Folders in code1, close">}</Keywords>
                    <Keywords name="Folders in code2, open"></Keywords>
                    <Keywords name="Folders in code2, middle"></Keywords>
                    <Keywords name="Folders in code2, close"></Keywords>
                    <Keywords name="Folders in comment, open"></Keywords>
                    <Keywords name="Folders in comment, middle"></Keywords>
                    <Keywords name="Folders in comment, close"></Keywords>
                    <Keywords name="Keywords1">$ CONTENT_ DOCUMENT_ GATEWAY_ HTTP_ HTTPS if_not_empty PATH_ QUERY_ REDIRECT_ REMOTE_ REQUEST_ SCGI SCRIPT_ SERVER_</Keywords>
                    <Keywords name="Keywords2">@</Keywords>
                    <Keywords name="Keywords3">http server events location include</Keywords>
                    <Keywords name="Keywords4">accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime break charset charset_map charset_types chunked_transfer_encoding client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type deny devpoll_changes devpoll_events directio directio_alignment disable_symlinks empty_gif env epoll_events error_log error_page expires fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_bypass fastcgi_cache_key fastcgi_cache_lock fastcgi_cache_lock_timeout fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_purge fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_keep_conn fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_no_cache fastcgi_param fastcgi_pass fastcgi_pass_header fastcgi_read_timeout fastcgi_redirect_errors fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path flv geo geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_http_version gzip_min_length gzip_proxied gzip_static gzip_types gzip_vary if if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_sharpen image_filter_transparency imap_capabilities imap_client_buffer include index internal ip_hash keepalive keepalive_disable keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_conn_zone limit_except limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_close lingering_time lingering_timeout listen location lock_file log_format log_format_combined log_not_found log_subrequest map map_hash_bucket_size map_hash_max_size master_process max_ranges memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_pass memcached_read_timeout memcached_send_timeout merge_slashes min_delete_depth modern_browser modern_browser_value mp4 mp4_buffer_size mp4_max_buffer_size msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_min_uses open_file_cache_valid open_log_file_cache optimize_server_names override_charset pcre_jit perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect post_action postpone_output protocol proxy proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_bypass proxy_cache_key proxy_cache_lock proxy_cache_lock_timeout proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_cookie_domain proxy_cookie_path proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_http_version proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_no_cache proxy_pass proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_redirect_errors proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout return rewrite root rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy satisfy_any secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server server_name server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set set_real_ip_from smtp_auth smtp_capabilities so_keepalive source_charset split_clients ssi ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush timeout timer_resolution try_files types types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn upstream use user userid userid_domain userid_expires userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending working_directory xclient xml_entities xslt_entities xslt_stylesheet xslt_types</Keywords>
                    <Keywords name="Keywords5"></Keywords>
                    <Keywords name="Keywords6"></Keywords>
                    <Keywords name="Keywords7"></Keywords>
                    <Keywords name="Keywords8"></Keywords>
                    <Keywords name="Delimiters">00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23</Keywords>
                </KeywordLists>
                <Styles>
                    <WordsStyle name="DEFAULT" fgColor="000000" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="COMMENTS" fgColor="000000" bgColor="FFFFFF" colorStyle="0" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="LINE COMMENTS" fgColor="AAAAAA" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="2" nesting="0" />
                    <WordsStyle name="NUMBERS" fgColor="000000" bgColor="FFFFFF" colorStyle="0" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS1" fgColor="AA00AA" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS2" fgColor="0000FF" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="1" nesting="0" />
                    <WordsStyle name="KEYWORDS3" fgColor="0000AA" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="1" nesting="0" />
                    <WordsStyle name="KEYWORDS4" fgColor="AA0000" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="KEYWORDS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="OPERATORS" fgColor="000000" bgColor="FFFFFF" colorStyle="0" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="FOLDER IN CODE1" fgColor="0000AA" bgColor="FFFFFF" colorStyle="1" fontName="" fontStyle="1" nesting="0" />
                    <WordsStyle name="FOLDER IN CODE2" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="FOLDER IN COMMENT" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="DELIMITERS1" fgColor="000000" bgColor="FFFFFF" colorStyle="0" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="DELIMITERS2" fgColor="000000" bgColor="FFFFFF" colorStyle="0" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="DELIMITERS3" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="DELIMITERS4" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="DELIMITERS5" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="DELIMITERS6" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="DELIMITERS7" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                    <WordsStyle name="DELIMITERS8" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" nesting="0" />
                </Styles>
            </UserLang>
        </NotepadPlus>
        
        1 Reply Last reply Reply Quote 3
        • steadybrightS
          steadybright
          last edited by

          SOLVED!

          Thank you for your quick reply, Ekopalypse!

          buzz

          Meta ChuhM 1 Reply Last reply Reply Quote 3
          • Meta ChuhM
            Meta Chuh moderator @steadybright
            last edited by Meta Chuh

            additional note for @steadybright and all who need better multiple udl management and compatibility with older user defined language (udl) xml files:

            notepad++ versions 7.6.4 and above are compatible with older udl files and made the import and management process much simpler.

            on 7.6.4 and above you just need to copy the whole file userDefineLang_nginx.xml, as it is, without renaming, to %AppData%\Notepad++\userDefineLangs and restart notepad++.
            (on the portable versions, the path is your_npp_folder\userDefineLangs )
            additionally you can also import the original file as it is, it will then be merged to userDefineLang.xml as expected.

            version 7.6.4 and above allows you to have multiple, independent udl.xml files, instead of just one large, merged userDefineLang.xml file.
            this also makes deployment much easier, as you just have to copy one or more udl.xml file(s) that are needed, to the userDefineLangs folder of a target machine, without having to browse through any menus.

            big thanks for @Ekopalypse for converting the old nginx udl for “newer-older” versions of notepad++ 👍

            1 Reply Last reply Reply Quote 4
            • steadybrightS
              steadybright
              last edited by

              Thank you, Meta Chuh!

              I’m looking forward to the release of 7.6.4!

              buzz

              1 Reply Last reply Reply Quote 2
              • PeterJonesP
                PeterJones
                last edited by

                @steadybright said:

                I’m looking forward to the release of 7.6.4!

                FYI, 7.6.4 was released on Mar 6 (download here); I’m wondering if you really meant “looking forward to 7.6.4 auto-updated being triggered”, which is a separate item from “version being released”.

                And I just saw that an hour ago, Don announced that v7.6.5 has been fully released.

                Release generally happens 1-2 weeks before the auto-updater is triggered for that release. If during that lag time, you want to use the newer version, you can go to the download page at https://notepad-plus-plus.org/download/ to get the most recent version; you can either use what we call the portable version (which Don calls the “zip package” or “7z package”), which allows you to put it in a user-owned directory, and run it without installing (thus allowing you to test out new features without replacing your full installation, but does not give you automatic file association; if you double-click on a txt file, it will still open the installed version of notepad++, not the portable version); or if you’re confident you want to switch, you can use the installer download to do a full install (which will fully replace your old version of notepad++).

                1 Reply Last reply Reply Quote 2
                • steadybrightS
                  steadybright
                  last edited by

                  Hi, Peter,

                  Yes, I meant update via the ? > Update Notepad++ menu.

                  However, to your second point, I just selected Update Notepad++ and the response is No update is available.

                  Hopefully, I’ll see it later today or tomorrow.

                  buzz

                  1 Reply Last reply Reply Quote 1
                  • PeterJonesP
                    PeterJones
                    last edited by

                    @steadybright said:

                    Yes, I meant update via the ? > Update Notepad++ menu.

                    If you don’t want to manually install, then, as I said, the auto-update is usually triggered 1-2 weeks after release. Or, if the release if found to have major bugs, it might never get the update-to-x triggered. (I don’t know whether Don will ever trigger auto-update to 7.6.4, or if he’ll just skip the auto-update to 7.6.5, since he released 7.6.5 before the trigger of 7.6.4)

                    1 Reply Last reply Reply Quote 3
                    • steadybrightS
                      steadybright
                      last edited by

                      My apologies! I read 1-2 weeks as 1-2 days.

                      1 Reply Last reply Reply Quote 2
                      • nation of gandhisN
                        nation of gandhis
                        last edited by

                        @Ekopalypse so this <code> above, is used how? I am getting langs.xml failed to load warning. Win 10 updated pro

                        EkopalypseE 1 Reply Last reply Reply Quote 1
                        • EkopalypseE
                          Ekopalypse @nation of gandhis
                          last edited by

                          @nation-of-gandhis

                          copy/paste the above text into a document and call it whatever_you_like.xml
                          and then open UDL and press Import button.

                          The message you receive doesn’t look healthy.
                          The langs.xml is a file which is needed to be loaded from npp and is different
                          from UDL (user defined language) files.
                          Did you get this error because you have pasted it into the langs.xml?

                          1 Reply Last reply Reply Quote 2
                          • nation of gandhisN
                            nation of gandhis
                            last edited by

                            no just pops when npp LOADS

                            1 Reply Last reply Reply Quote 0
                            • nation of gandhisN
                              nation of gandhis
                              last edited by

                              @Ekopalypse Looks good now (no just pops when npp LOADS or… did) don’t know what happened. I did not do a thing ;)

                              1 Reply Last reply Reply Quote 3
                              • First post
                                Last post
                              The Community of users of the Notepad++ text editor.
                              Powered by NodeBB | Contributors