Community
    • Login

    How to get it to read .ss files as html?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    html
    3 Posts 2 Posters 2.7k Views 1 Watching
    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.
    • Nika RudolfN Offline
      Nika Rudolf
      last edited by Nika Rudolf

      I tried deleting ss extention from scheme in the langs.model file and adding ss to HTML in Style Configurator, but it still reads .ss files as scheme files.

      1 Reply Last reply Reply Quote 0
      • guy038G Online
        guy038
        last edited by guy038

        Hello @nika-rudolf and All,

        Not very difficult, indeed ! But, first, we must identify where the Configuration files, of your N++ configuration, are ! So, choose, in N++, the menu option > ? > Debug info… :

        • If the Local Conf mode line is set to ON, you have a local N++ configuration => You probably got Notepad++ via a .zip or .7z archive and your configration files should be in the N++ installation folder, along with the executable file notepad++.exe

        • If the Local Conf mode line is set to OFF, you probably got Notepad++ with the installer and your configuration files should be :

          • In the %AppData%\Roaming\Notepad++ folder, if your system is a W7, W8 or W10 machine

          • In the %AppData%\Notepad++ folder, if your system is a XP, or Vista machine


        IMPORTANT : We’re going to modify two configuration files : langs.xml and stylers.xml. So :

        • In Notepad++, close, first, all your opened .ss files. Then, choose the menu option File > Empty Recent Files List, in order to delete any reference to the .ss files, in the session.xml configuration file !

        • Now, close any instance of N++ and BACKUP your active files langs.xml and stylers.xml as, for instance, langs.bak and stylers.bak ( One never knows !! )

        • To edit the langs.xml and stylers.xml files, you must NOT use Notepad++ and use, exclusively, MS Notepad or MS wordpad or any other text editor !!


        Then :

        • Open the langs.xml file and change the line :
            <Language name="scheme" ext="scm smd ss" commentLine=";">
        

        into :

            <Language name="scheme" ext="scm smd" commentLine=";">
        

        Save the changes and exit the langs.xml file. Now, open the stylers.xml file and change the line :

            <LexerType name="html" desc="HTML" ext="">
        

        into :

            <LexerType name="html" desc="HTML" ext="ss">
        

        Save the changes and exit the stylers.xml file


        Finally, open Notepad++ and load any .ss file => It should be opened, automatically, with the HTML language :-D

        Best Regards,

        guy038

        1 Reply Last reply Reply Quote 2
        • Nika RudolfN Offline
          Nika Rudolf
          last edited by

          Thank you so much, I did it and it works fine!

          1 Reply Last reply Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors