Tapatalk

Editing "html" file Paste a word and input a . problem

Editing "html" file Paste a word and input a . problem

8
NewbieNewbie
8

    Oct 12, 2006#1

    I have a problem when using UltraEdit. I don't know whether this is a bug or not.

    The problem is:

    When I edit a file named ***.jsp, the file is viewed as HTML (File highlighting type).

    I paste a word like "DomUtil" to the editing file, and I then input a dot character. Then a space is automatically created before the dot.

    BUT the space is NOT what I want to create...

    I just want to write a javascript Object and his function call, just like "DomUtil.foo()", but transform to "DomUtil .foo()" is not my purpose.

    I just turn on or off the option "Auto Indent" but the problem still happens.

    PS: I'm using WinXP SP2, UltraEdit 12.10b English version and the file is UTF-8.

    My native language is not English. I don't know if you can catch me.

    Please contact me. Thanks...

    6,685587
    Grand MasterGrand Master
    6,685587

      Re: Editing "html" file Paste a word and input a . problem

      Oct 12, 2006#2

      Does this happen only after a paste or also when you enter DomUtil.?

      Is the space also inserted when you enter a different character after pasting DomUtil?

      From where have you copied DomUtil to clipboard and what is really in the clipboard?
      I think, the clipboard content contains a single control character. Try following:

      Copy DomUtil as you normally do. Then create a new ASCII file, enter a space, switch with Edit - Hex Functions - Hex Edit to hex edit mode and paste the clipboard content here.

      You should get 20 44 6F 6D 55 74 69 6C. The last byte is most interesting.

      See also My suggestions for the configuration for UTF-8 webpage writers to avoid problems caused by wrong settings and not really understanding what UTF-8 is.
      Best regards from an UC/UE/UES for Windows user from Austria

      8
      NewbieNewbie
      8

        Oct 12, 2006#3

        Thanks, Mofi.

        ###Does this happen only after a paste or also when you enter DomUtil.?
        ---------------------------------------------------------------------------
        Only after a paste.

        ###Is the space also inserted when you enter a different character after pasting DomUtil?
        ---------------------------------------------------------------------------
        Yes. I try many times. Other letters ALSO make the space inserted.
        When I paste "DomUtil", and enter .
        I get "DomUtil ."
        and when I press "Ctrl-z", the space deleted. I get "DomUtil."
        (quote character above is use to quote, not my paste or input)


        ###From where have you copied DomUtil to clipboard and what is really in the clipboard? ..........
        ---------------------------------------------------------------------------------
        I copy DomUtil from UltraEdit (double click to select, no space append at end), or from Textpad, or Word. All the same. When I paste, the cursor is just after the DomUtil, no space. And when I paste this DomUtil to Notpad, or Word, I got only DomUtil not "DomUtil " (I'm sure just in that clipboard). And in UltraEdit hex mode, I really get "20 44 6F 6D 55 74 69 6C"

        ###See also My suggestions for the configuration for UTF-8 webpage writers to avoid problems caused by wrong settings and not really understanding what UTF-8 is.
        ---------------------------------------------------------------------------
        I will try to read. thank you. :)



        I'm using Chinese version Windows XP SP2. I have tried ultraedit 12.10b English or Simplified Chinese two version. Things is also that.

        And that happend ONLY when the following two conditions are both satisfied:
        (1) The file encoding is utf-8
        (2) The file is recongined as a known File Highting Type. I test ".java .js .html .jsp".
        If either condition not satisfed, the problem will not appears.

        You can try the attachment file (unzip first) to check if you guys met this problem. ---> why can't i upload the test.zip???

        6,685587
        Grand MasterGrand Master
        6,685587

          Oct 12, 2006#4

          I can't reproduce this effect on my WinXP with my settings with UE v12.10b with the default wordfile.txt with your file. Maybe the Auto Correct Keywords feature in combination with a bad wordfile is the problem.

          So I suggest to disable the feature at Advanced - Configuration - Editor Display - Syntax Highlighting. If then the problem is gone, the wordfile is corrupted in any way and I would need your wordfile and maybe also your uedit32.ini without your private strings (paths and every text between 2 double quotes), packed into a zip-file and uploaded temporarily anywhere. I will delete the posts with the link to the files when the problem is fixed or you request it. The forum upload feature is disabled.
          Best regards from an UC/UE/UES for Windows user from Austria

          8
          NewbieNewbie
          8

            Oct 12, 2006#5

            Hi mofi, thanks for your help.

            I disabled the Syntax Highlighting, But the effect still exsist.
            And I just uninstall my UE. delete the installed directory and restart my computer. Then install the newly downloaded (from this site) ultraedit 12.10b English version to another dir. and test is again, But on my computer the effect is still there!

            I have test on two computer now. the same effect.

            I suggest if you could test on a Simplified Chinese version winXP.

            And my wordfile.txt is identical with the default wordfile.txt. I havn't edit it at all.

            I can't find any file named uedit32.ini in my UE install dir nor in my document and setting dir. Could you tell me where to find it?
            Dose UE stores settings in registry or other dir?

            6,685587
            Grand MasterGrand Master
            6,685587

              Re: Editing "html" file Paste a word and input a . problem

              Oct 13, 2006#6

              I have verified that your wordfile is really the default wordfile which works perfect on my computer. You can delete it from your domain. I have already removed the link in your post.

              So it must be a setting problem. Find the uedit32.* configuration files with Windows Explorer in the hidden personal application data directory.

              A new installation does not help because the INI file is not changed and the new installation uses the same INI.
              Best regards from an UC/UE/UES for Windows user from Austria

              8
              NewbieNewbie
              8

                Oct 13, 2006#7

                Thanks for your editing the link in my post... :)

                A new installation does not help because the INI file is not changed and the new installation uses the same INI.
                ------------------------------------------------------->
                Oh... This may be the problem! Cause I have install the UE previous version long time ago.

                But, I don't think it's a good idea to store the INI file in hidden dir. It's not easy for updating, and maintain the compatibility cause the hidden setting file. Or If I uninstall the version, and choose "remove all my setting files", the INI will be deleted.

                  Oct 13, 2006#8

                  NO, My God!

                  I have deleted the directory "Documents and Settings\xxx\Application Data\IDMComp\UltraEdit" , And all the UltraEdit about files in "Documents and Settings" dir can't be found. And I run UE. But the problem still exists. Faint , Crying....

                  Do you have a very clean uninstall then.

                  6,685587
                  Grand MasterGrand Master
                  6,685587

                    Oct 13, 2006#9

                    I tested it now with your file with v12.10b with the default settings and still can't reproduce the effect.

                    Have you disabled Enable Syntax Coloring or Auto Correct Keywords at Advanced - Configuration - Editor Display - Syntax Highlighting? You should disable Auto Correct Keywords.

                    I think the auto correct keywords feature is the problem because this feature is automatically disabled when the file extension is not recognized as a known extension for syntax highlighting and you have written that the problem does not exist when the file is not highlighted because of unknown file extension or missing wordfile or selecting No Highlighting at View - View As (Highlighting File Type).

                    Disabling Syntax Coloring does not disable the auto correct keywords feature. If the auto correct keywords is not the problem, I don't have any idea anymore what could cause the problem except an other running application in the background which interfere with UltraEdit. Please contact IDM support by email if the auto correct keywords feature is not the problem.
                    Best regards from an UC/UE/UES for Windows user from Austria

                    8
                    NewbieNewbie
                    8

                      Oct 13, 2006#10

                      Have you disabled Enable Syntax Coloring or Auto Correct Keywords at Advanced - Configuration - Editor Display - Syntax Highlighting? You should disable Auto Correct Keywords.

                      YES, I'm sure! ....

                      Two question please:

                      1. If I delete the dir "Documents and Settings\xxx\Application Data\IDMComp\UltraEdit" . then the setting files is all clean?
                      I see the UE can automatically create a new dir when UE start.

                      2. When you test my test.js file. Is the file U8-Dos encoding?

                      Thanks mofi, you are a kind person. thanks very much!

                      6,685587
                      Grand MasterGrand Master
                      6,685587

                        Re: Editing "html" file Paste a word and input a . problem

                        Oct 13, 2006#11

                        yadan wrote:1. If I delete the dir "Documents and Settings\xxx\Application Data\IDMComp\UltraEdit", then the setting files is all clean?
                        Yes, it is. Then it is like first install. UE creates every configuration file on startup with its default settings if it cannot find it. The installer itself does never modify any configuration file. This is always the job of uedit32.exe.

                        See in help of UltraEdit the page titled INI File Selection and Advanced Settings where the configuration files can be stored and in which order uedit32.exe searches for it. I have moved all configuration files to the UltraEdit program directory. Do not move the file projects.lst. This is the only file which is always stored in the user application data directory.
                        yadan wrote:2. When you test my test.js file. Is the file U8-DOS encoding?
                        Yes, UltraEdit has detected the UTF-8 BOM in your file and loaded it for Unicode editing. In hex mode you can see every character with 2 bytes (second but is 00 for ASCII characters) when Unicode editing is used. I also tried it with UTF-8 detection disabled and so your file loaded as ASCII file - no difference.

                        What might be also also a difference between your and my installation - I have not installed any dictionary. So the Spell Checker in UE is not working.
                        Best regards from an UC/UE/UES for Windows user from Austria

                        8
                        NewbieNewbie
                        8

                          Re: Editing "html" file Paste a word and input a . problem

                          Oct 13, 2006#12

                          I had these tests a moment ago.
                          1. Uninstall UE, delete install dir.
                          2. delete the dir "Documents and Settings\xxx\Application Data\IDMComp\. Search and make sure there are no files or dirs containing words "ultraedit" or "uedit32" under dir "Documents and Settings".
                          3. Restart my computer.
                          4. Run Regedit. Search words "ultraedit", "uedit32", "IDMComp", "IDM Computer Solutions", "TOOLSIDM". Delete or modify all keys containing these words. Make sure my computer is the same as I haven't install UE before. (sure?)
                          5. Restart my computer.
                          6. Download from this site, get the newest release: UltraEdit 12.20 English version.
                          7. Install UE to a new dir. Dosen't install dictionary. (I never use Spell Checker )
                          8. Run UE. Open test.js. The effect is still there.
                          9. Disabled "Auto Correct Keywords", the same problem.
                            (I always disable "Auto Correct Keywords" before. Cause in js or java file, I type a word "url", UE always corret it to "URL" when the "Auto Correct Keywords" enabled, But I just wanna "url" ~:p)
                          10. Restart windows to safe mode. Run UE. Same effect occurs.
                          So, I have no idea about the question.
                          These tests I've made on my two computer all running winxp SP2 Simplified Chinese version.

                          I guest the reson may be something as blow:
                          1. Related with the Chinese WinXP. When I have spare time, I'll try to test on more computers.
                            And if your team has a test pc, you can try it. If you can't reproduce this effect on your Chinese version WinXP/Win2K, Please tell me!
                          2. There may be something wrong with my software environment.
                            1. I have install a virtual cd-rom software "Virtual daemon manager 4.00" before, when installing, the program warn me it will modify some windows kernel files, and I can't use softICE anymore. I don't know if this has effect.
                            2. I install Kaspersky Anti-Virus Personal. And my computers has been infected by some Trojans. But now I scan my computer, no virus found. I don't know if the virus or the anti-virus has some problem.
                          Maybe I should install a new WinXP OS. And install UE before install any other programs to test the problem. If I have time, I will do this.

                          Interesting, aha, I almost get used to this effect, the space character from the space. :)

                          6,685587
                          Grand MasterGrand Master
                          6,685587

                            Re: Editing "html" file Paste a word and input a . problem

                            Oct 13, 2006#13

                            yadan wrote:And if your team has a test pc, you can try it. If you can't reproduce this effect on your Chinese version WinXP/Win2K, Please tell me!
                            I am a user like you, not an employee of IDM. That's why I have written that you should contact the IDM support for your problem as described at top of this page.

                            Well, you have done a perfect uninstall and reinstall, so I can't really help you anymore with my private German Win98 SE at home and my English WinXP Prof. SP2 at work. Please contact IDM support by email.
                            Best regards from an UC/UE/UES for Windows user from Austria

                            8
                            NewbieNewbie
                            8

                              Re: Editing "html" file Paste a word and input a . problem

                              Oct 14, 2006#14

                              Hello Mofi: you must be a VIP user Haha:)

                              Thanks for your help indeed. I just tested on another PC, which has install UE 11.20 (the old version works well, has nothing effect I met in new version). And I do a clean uninstall, install UE12.20. And the effect appears.

                              I've written a email to the IDM support. And waiting for their test. I like program and coding, so I really wanna find out what's the matter with my three computers...