• Login
Community
  • Login

Remove default extension in Style Configurator

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 3 Posters 2.0k 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.
  • N
    NotepadPP_User
    last edited by NotepadPP_User Sep 25, 2018, 9:05 AM Sep 25, 2018, 9:03 AM

    I’d like to open *.S files as if they are Assembly files (same as *.asm).

    I can add “S” to “Assembly” in the style configuration user defined extensions. But, I cannot remove the current mapping for “S” which is assigned to the “R” language.

    Therefore, “S” files will always be opened as if they are “R” language files.

    How do I remove “S” file types from the “R” language parser?

    1 Reply Last reply Reply Quote 0
    • G
      gstavi
      last edited by Sep 25, 2018, 11:21 AM

      Didn’t try it by myself but my guess is:
      Settings --> Preferences --> Language Menu
      Move ‘R’ to disabled.

      1 Reply Last reply Reply Quote 1
      • D
        dinkumoil
        last edited by Sep 25, 2018, 11:25 AM

        You have to edit the file

        C:\Users\<UserName>\AppData\Roaming\Notepad++\langs.xml

        Search the following Language node:

        <Language name="r" ext="r s splus" commentLine="#">
        

        You have to remove the s in the value of the attribute ext.

        1 Reply Last reply Reply Quote 4
        • N
          NotepadPP_User
          last edited by Sep 26, 2018, 2:34 PM

          Thanks, this worked. maybe the GUI setting could allow this in the future.

          1 Reply Last reply Reply Quote 0
          2 out of 4
          • First post
            2/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors