Associate wordfile and global filenames (using wildcards)?

Associate wordfile and global filenames (using wildcards)?

27
Basic UserBasic User
27

    May 04, 2014#1

    Hi
    Here's my whish:
    I wrote several text files with some specific lines. I want to create a wordfile to highlight some specified strings.
    I create it well, thanks for many post on this forum. All this files are named as:
    - "TOTO_ZUT_bla_step1.txt"
    - "TOTO_ZUT_bla_step2.txt"
    - "TOTO_ZUT_bob_step1.txt"
    etc.

    Well, i wonder if is it possible to associate the wordfile, i've created, and the files named "TOTO_ZUT_*_step*.txt"?
    Thanks for you answer and your help

    6,675585
    Grand MasterGrand Master
    6,675585

      May 05, 2014#2

      Sticky topic Template for syntax highlighting language wordfile lists both possibilities of assigning a syntax highlighting language to files: File Extensions = and File Names =

      Wildcards are not possible with one exception: * as last "file extension" at end of File Extensions = results in highlighting all files not assigned to any syntax highlighting language with the language defined in the wordfile containing * at end of the file extension list.

      It is not possible to assign "TOTO_ZUT_*_step*.txt" to a syntax highlighting language.

      A solution is to use File Extensions = TXT in your wordfile and live with the fact that it highlights all *.txt files by default with the language defined in this wordfile. Selecting No Highlighting for an opened *.txt file is at any time possible. If this is acceptable for you depends mainly on how often you open and edit *.txt files which should not be highlighted with your syntax highlighting definition.

      To avoid highlighting all *.txt with your wordfile for "TOTO_ZUT_*_step*.txt", it is possible to store your wordfile not in the default wordfiles directory %APPDATA%\IDMComp\UltraEdit\wordfiles\, but in a different directory. Next you use Project - New Project/Workspace, create a project for example in same directory as your wordfile, and specify in window opened with Project - Project Settings your wordfile to use for the project/workspace. This results in ignoring all standard wordfiles in default wordfiles directory whenever the workspace for working on "TOTO_ZUT_*_step*.txt" is opened.

      You can open/close the workspace either via menu Project, or you create a shortcut to uedit32.exe with the additional parameters
      /fni "complete path\project.prj"
      which starts always a new instance of UltraEdit and opens the project/workspace.

      The last option is to make a copy of %APPDATA%\IDMComp\UltraEdit\uedit32.ini in same directory, for example with name uedit32_txt.ini. Next you create a shortcut to uedit32.exe with the command line parameters
      /fni /i="%APPDATA%\IDMComp\UltraEdit\uedit32_txt.ini"
      Starting UltraEdit with this shortcut results in using the alternate INI file. The syntax highlighting wordfiles directory in UltraEdit started with the alternate INI file must be once configured to the directory containing your wordfile for "TOTO_ZUT_*_step*.txt" files.

      Whenever you want to view/edit "TOTO_ZUT_*_step*.txt" files you need to use UltraEdit with the workspace respectively the alternate INI file to get them highlighted with the syntax highlighting definition in your wordfile while all other *.txt files opened in standard UltraEdit or with workspace not loaded are not highlighted at all or highlighted with a different wordfile for files with extension TXT.
      Best regards from an UC/UE/UES for Windows user from Austria

      27
      Basic UserBasic User
      27

        May 12, 2014#3

        Sorry for the late of my answer, i had some busy days last week.
        Thanks for your answer, it's very helpful.