• Login
Community
  • Login

change default save language as java

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
9 Posts 4 Posters 7.4k 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.
  • P
    Piyush Chaudhary
    last edited by Feb 3, 2016, 6:08 AM

    I had install NPP 6.8.8. I want to change the default save setting of any written program from .txt to .java. Is that possible ? If yes, Then please tell me that how can I do it? Thanks in Advance.

    C 1 Reply Last reply Feb 3, 2016, 2:53 PM Reply Quote 0
    • C
      Claudia Frank @Piyush Chaudhary
      last edited by Claudia Frank Feb 3, 2016, 2:54 PM Feb 3, 2016, 2:53 PM

      Hello @Piyush-Chaudhary,

      npp recognises the language by the file extensions, so if there are any java files which aren’t recognised automatically you need to add those extensions to java language (lang.xml).
      For the new opened documents you can set the default language to java by using
      Settings->Preferences->New Document

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • P
        Piyush Chaudhary
        last edited by Feb 3, 2016, 6:11 PM

        I know that the NPP recognises the lang. by the file ext… & there is no problem with that all. I want to make the .java ext as default while saving any document. Is that possible?
        & that setting-> preferences-> new document method is not working… Please help me, I had got stuck with all time saving as .java …

        C 1 Reply Last reply Feb 3, 2016, 7:11 PM Reply Quote 0
        • C
          Claudia Frank @Piyush Chaudhary
          last edited by Feb 3, 2016, 7:11 PM

          For new documents the described procedure works, as long as you don’t change lexer language, but if you want to rename existing documents, then no. Are those files on your computer, maybe in the same directory? What about using

          ren *.txt *.java
          

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          • P
            Piyush Chaudhary
            last edited by Feb 8, 2016, 4:30 PM

            I think I was unable to describe my problem exactly. So, I am again trying it.
            I want to save my all new document as save type as .java, but while saving it always showing as .txt extension & I am changing it all time, which is so exausting every time… So, I want to save
            as default as. java extension, Please help

            1 Reply Last reply Reply Quote 0
            • F
              fade2gray
              last edited by Feb 10, 2016, 7:13 PM

              Works for me - https://youtu.be/Djlp2tgmlFY

              1 Reply Last reply Reply Quote 0
              • C
                Claudia Frank
                last edited by Feb 10, 2016, 7:53 PM

                works for me as well - maybe a(nother) clean install will help resolving this.

                Cheers
                Claudia

                1 Reply Last reply Reply Quote 0
                • D
                  dail
                  last edited by Feb 10, 2016, 8:03 PM

                  Maybe it has something to do with this option.

                  Screenshot

                  Do you have that checked or not?

                  F 1 Reply Last reply Feb 10, 2016, 10:45 PM Reply Quote 0
                  • F
                    fade2gray @dail
                    last edited by Feb 10, 2016, 10:45 PM

                    @dail Good call.

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