toshant_n's blog

By toshant_n, 3 months ago, In English

How to add my template in Far Manager? I don't want to write a python script for that or copy-paste it every time. I have installed True Template, it has some pre-defined templates. I want to add my template to this list.

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
3 months ago, # |
  Vote: I like it +10 Vote: I do not like it

Perhaps you can create the respective file at templates/source, add it to this config in the same directory, and reload the plugin.

  • »
    »
    3 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    It didn't work for me.

    • »
      »
      »
      3 months ago, # ^ |
        Vote: I like it +13 Vote: I do not like it

      Yeah, it doesn't.

      The string at line <Expand Name="&amp;Templates should also be extended with \~Template: test=test — or whatever your template is called further, like here:

      <Expand Name="Template: test" At="&AnyWhere;" SubMenu="1" To="\i'$\templates\source\test.cpp'"/>

      Also, the template itself should be in UTF-16 little-endian encoding by default, which may not be your default for other uses.

      • »
        »
        »
        »
        3 months ago, # ^ |
          Vote: I like it +10 Vote: I do not like it

        Working. Thanks!

      • »
        »
        »
        »
        5 weeks ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        it shows some question mark type things when i choose my own template!

        • »
          »
          »
          »
          »
          5 weeks ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          Mind the UTF16 encoding, perhaps?..

          • »
            »
            »
            »
            »
            »
            5 weeks ago, # ^ |
              Vote: I like it 0 Vote: I do not like it

            How can I create folders of different prewritten codes according to topics and add that folder in that list?

            • »
              »
              »
              »
              »
              »
              »
              5 weeks ago, # ^ |
                Vote: I like it +8 Vote: I do not like it

              Guys. I'm not using True Template. Please ask topicstarter for first-hand experience.

              • »
                »
                »
                »
                »
                »
                »
                »
                5 weeks ago, # ^ |
                  Vote: I like it 0 Vote: I do not like it

                Sorry, I thought that it was a question related to xml.

        • »
          »
          »
          »
          »
          5 weeks ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          open you file in notepad and again click on save as and then their will be a box telling you about the encoding, select UTF 16LE encoding in that and replace the old file with this.

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

can u please explain it more i am not able to do it 1.do we have to create a new file for this or we have to edit the old "true-source-c++.xml" 2. if we have to edit the old one it's not giving me the permission to edit it