Image Drag and Drop for non HTML files

Image Drag and Drop for non HTML files

23
Basic UserBasic User
23

    Mar 21, 2018#1

    I program in ColdFusion (CFML) and would like to drag and drop images onto an editor that is detected as "ColdFusion" and have the path/width/height be automatically added. This feature has always existed on a program called HomeSite and really miss being able to do this on UltraEdit.

    Is there any ability to extend functionality so that "HTML" isn't the only file type that can do this? Or am I required to manually change the type from "ColdFusion" to "HTML", drag & drop the image, and then change it back?

    Thanks.

    6,602547
    Grand MasterGrand Master
    6,602547

      Mar 25, 2018#2

      I looked on this feature with UltraEdit v25.00.0.58 on which dragging and dropping an image file from tab Explorer in File View onto document window of active file results in inserting <img src="..." alt="..." height="..." width="..."> into the file.

      This feature is strictly bound with case-insensitive syntax highlighting language name "HTML". So the active file must be highlighted with a syntax highlighting language of which name is "HTML" in any case. Any other syntax highlighting language name even on containing also the string HTML is ignored by UltraEdit for this feature resulting in opening the image file in a new document window in hex edit mode.

      So the only possibility for getting this feature to work for *.cfml files is adding file extension CFML to wordfile html.uew opened via Advanced - Settings or Configuration - Editor display - Syntax highlighting using button Open on selected language HTML.

      I suppose the currently used wordfile for syntax highlighting ColdFusion files contains keywords in color groups not present in the HTML wordfile. Those color groups should be copied into html.uew with adjusted color group number. Other settings in ColdFusion wordfile above all color groups might be taken over also into the HTML wordfile if not conflicting with HTML settings. Finally the color settings of HTML language with additional ColdFusion color groups need to be customized in Manage Themes dialog.
      Best regards from an UC/UE/UES for Windows user from Austria

      23
      Basic UserBasic User
      23

        Mar 25, 2018#3

        Mofi wrote:This feature is strictly bound with case-insensitive syntax highlighting language name "HTML". So the active file must be highlighted with a syntax highlighting language of which name is "HTML" in any case. Any other syntax highlighting language name even on containing also the string HTML is ignored by UltraEdit for this feature resulting in opening the image file in a new document window in hex edit mode.
        It seems weird that this feature is strictly bound to a specific language. Is it common for UE users to directly edit the HEX of an image versus using an image editor? Initially I would have thought any jpg | gif | png | etc. image file would have auto-generated embed code... maybe even be slightly different depending on the type of file you are editing.

        Again, this drag-and-drop image behavior has been the default behavior of HomeSite (that I've used since 1996.)

        It'd be better if the options for "Edit | Image dag-and-drop" had specific HTML & CSS editable templates (like it does now), but also add a global fallback. If left empty, then UE can open the image in a HEX editor like it does now (which I don't think is of useful to anyone.)

        6,602547
        Grand MasterGrand Master
        6,602547

          Mar 26, 2018#4

          What you wrote makes sense to me although I don't need the feature for files not highlighted with "HTML". Please send a feature or enhancement request to IDM support by email. It has no effect on future versions to post good ideas for enhancements in user-to-user forum.

          I am quite sure that image files are not edited manually with UltraEdit in hex edit mode. I can imagine modifying image files opened in hex edit mode with an UltraEdit macro or script, for example to remove embedded meta data. Users might view the bytes of an image especially in header area by opening an image file in hex edit mode in UltraEdit.

          UltraEdit designed as very powerful general text editor for text files of any size with additional hex editing support cannot be compared with Macromedia HomeSite designed only for HTML & XML editing. I suppose HomeSite does not even have a hex edit mode. Applications written for the only purpose of webpage editing have and will have always features being a big help for webpage editors which an application written for editing any text file don't have and won't have ever.
          Best regards from an UC/UE/UES for Windows user from Austria