Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

editor change/replace tab character handling

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    editor change/replace tab character handling

    Hi Support,

    I don't know if this is a problem for you but it bothers me a good bit. The change replace dialog in the script editor does not seem to handle tab character as I would exspect. I can not instert tabs and I can not cut and paste tab characters into the dialog. Or is there a problem with my installation?

    You help or understanding would sure be appreciated.

    #2
    Hello MartinT,

    To confirm, you are referring the NinjaScript Editor?

    You are hitting the tab key and a tab is not being inserted as demonstrated in the video below?
    https://drive.google.com/file/d/1y0M...w?usp=drivesdk

    I don't think this would be an issue with NinjaTrader, this would be an issue with the computer itself.
    Do you have any software on the computer that handles hotkeys or does automation with keypresses or mouse clicks?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi ChelseaB,

      Yes, I am referring to the NinjaScript Editor.

      The Tab key does work properly in the Editor. It is specifically the change/replace dialog within NinjaScript Editor where I have found trouble. When I try to insert tabs in the replace text spaces are put in there place in the text of the editor. Try to insert 12 tabs in front of the replae text. Will all 12 tab characters be placed in the text of the editor? I think maybe there is a conflict with indentation perhaps.

      martin

      Comment


        #4
        Hello MartinT,

        You are able to add tabs to a script directly, correct?

        Hitting tab in the Find window would tab to the next control. The same will happen in visual studio and most other editors including notepad in the Find window. Unfortunately, a tab would be a special character than cannot be entered in this window.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi ChelseaB,

          Yes I can add tabs to a script directly. Is there an escape sequence or control sequence which can be used in the Find/Replace dialog to insure tabs will result in the script text? I have tried \t and \\t with no success. Is there a document about Character escape sequences allowed in the NinjaStript Editor and Find/Replace function?

          I have seen the doc page: "Editor Keyboard Shortcuts". It is about Editor commands. It does not have anything to say about Character escape sequences or Character control sequences.

          Maybe they are simply not allowed?


          martin

          Comment


            #6
            Hello martin,

            Use the Wildcard as the Search type and search for \t.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              Hi ChelseaB,

              Ah, Yes, Thank you. It will let me insert as well. Just what I was looking for.

              thank you very much!

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by actualfacts.2021, 07-25-2021, 03:11 PM
              8 responses
              1,182 views
              0 likes
              Last Post linkcou
              by linkcou
               
              Started by reynoldsn, Today, 07:11 PM
              0 responses
              2 views
              0 likes
              Last Post reynoldsn  
              Started by needsomehelp147, 04-29-2024, 06:43 AM
              2 responses
              19 views
              0 likes
              Last Post needsomehelp147  
              Started by sidlercom80, 10-28-2023, 08:49 AM
              177 responses
              2,400 views
              0 likes
              Last Post jeronymite  
              Started by algospoke, Today, 06:36 PM
              0 responses
              7 views
              0 likes
              Last Post algospoke  
              Working...
              X