Is it possible to have more than 50 text blocks

Is it possible to have more than 50 text blocks

3
NewbieNewbie
3

    Dec 04, 2005#1

    hallo,
    can someone say to me whether it is possible the number of text blocks to increase?
    For my work the fifty pieces are not sufficient, I absolutely need more. Or is it possible with a macro to copy over the file in that the text blocks to be stored another file with further blocks?
    Naturally the whole without to have to start UE again!

    Thx wolff

    6,682583
    Grand MasterGrand Master
    6,682583

      Re: Is ist possible to have more then 50 templates

      Dec 23, 2005#2

      I think, with text blocks you mean Templates. No, it is not possible to define more than 50 templates. Modifying the file while UltraEdit is running also does not work. The content of the template file is loaded only once at start of UltraEdit.

      However, you can use macros for expanding the number of predefined text strings. A macro can also have only the job to insert text and nothing more. You can define also individual hot keys for the "macros". It's also possible to call a template within a macro to use the special time/date/path and file name formating features of templates.

      Collect all "template" macros in a single macro file and specify this macro file for autoload. Use the Macro List view to execute one of this macros for inserting a text.

      Finally you should also read in the help of UltraEdit and the forum about the Auto Completion feature of UltraEdit. Maybe this could be also helpful for you.
      Best regards from an UC/UE/UES for Windows user from Austria

      3
      NewbieNewbie
      3

        Oct 01, 2006#3

        Hey Mofi,

        it's a long tima ago, that you answered of my question.
        In the time between I found out, that it is possible to change the directories for the templates in the setings while UE is running.

        Wenn you close the settings you can use the "new" templates.
        With this way I can make for different groups of worksteps different templates.

        But there is my new question. Can I change the directory of the templates in the settings with a macro?

        Thx Wolff

        6,682583
        Grand MasterGrand Master
        6,682583

          Re: Is it possible to have more then 50 text blocks

          Oct 01, 2006#4

          Well, you can write a macro which changes the template directory specification in uedit32.ini if the INI is always in the same directory. But this hack in the INI does not have any effect until you restart UltraEdit.

          Maybe instead of templates you could use tags.

          Do you know the tag feature of UltraEdit/UEStudio?

          Tags are similar to templates. They are not so powerful than templates. But they have an equivalent for a single usage of [$replace$] - enclose a selected text with a start and end tag (=text) or simply insert the text (tags) if nothing is selected. The cursor is also automatically placed between a start and end tag when inserting a tag. Multi-line tags and tags with tabs are also possible.

          Disadvantages of tags in comparison to templates:
          1. Tags cannot be assigned to hot keys.
          2. There are no special codes to insert a date/time or a file name in a customizable way like it is possible with templates.
          3. The cursor is automatically placed either between start and end tag or after the start tag if there is no end tag. It's not possible to specify where exactly the cursor should be after inserting the text.
          4. The tags are not available via a menu, only via the Tag List window.
          5. No equivalent for [$REPLACE$] code of templates.
          6. Tags from a taglist file cannot be used in macros like templates.
          Advantages of tags in comparison to templates:
          1. No limit (as far as I know).
          2. Can be grouped for different languages, projects or users.
          3. You can have as many taglist files as you want with names you like and can easily change it via the context menu of the tag list window.
          4. A taglist file which holds the tags is a normal text file and not a binary file like the storage file for templates. So they can be easily shared, modified or translated without UltraEdit and its special dialogs for editing tags or templates.
          5. Macros can be used to easily modify the content of a taglist file. However, the modifications on an already loaded taglist file by a macro will be detected by UE only when restarting UE or reload the file via the Modify Tags dialog.
          For more about templates and tags see Alternative to this BBS macro where Paolo and I are currently creating a taglist file for BBCode and the infos I have posted in my first post at this thread. See also the pages linked there.
          Best regards from an UC/UE/UES for Windows user from Austria

          3
          NewbieNewbie
          3

            Oct 02, 2006#5

            Hey Mofi,

            thanks for this great Answer, I think tags are the right way for my problem.

            But now i have a new little problem. I need tags with 20 and more lines.In the source CR/LF is used to create different lines. Is there an easy way to chance the "CR/LF" into "^P?"

            Thx from Germany
            Wolff

            6,682583
            Grand MasterGrand Master
            6,682583

              Oct 02, 2006#6

              See my post at taglist file how to create multi-line tags.
              Best regards from an UC/UE/UES for Windows user from Austria