I have bunch of html files in DEVONthink To Go 4 that are synced with the Desktop. On iPhone those html files are awkwardly treated and shown as formatted note which is obviously not what I want. They are treated correctly on both iPadOS and MacOS. Below is the information from the same file on different platforms
I understand that formatted note is also an html file, but I don’t want it to be edited by accident on iOS as it is treated as a formatted note. My original file is html, recognized as html in both macOS and iPadOS, but it is treated as a formatted note in iOS.
After experimenting with the files, I noticed that when I open the previously mishandled HTML file on iOS, the iPad and macOS instances are now treated as formatted notes after a sync.
Yep, I’ve just stumbled on this one. I may have a simple workaround that suits me and may help others: convert your html files to webarchives. The webarchives behave the same way for me (for my use cases) and DTTG doesn’t change them into formatted notes.
My specific use case is…
I have some html files (created on Mac) with embedded js scripts for some advanced UI behaviours. (The js scripts are also stored / synced within DT / DTTG.)
The contents of the html is actually almost entirely a json object. The embedded js then does a whole bunch of rendering and interaction handling.
When the html is converted into a formatted note…
I can no longer easily edit the json data within DT on Mac. (Formatted notes remove the source mode.) So I need to edit in an external editor. (Yes, I’m hardcore and edit my js without fancy IDE features! There is nothing like debugging js without a console or syntax highlighting or pesky AI bots that know everything!… ok, I admit I don’t do this too often)
If I make any changes to the rendered html (e.g. an accidental key press), the rendered html becomes text in the formatted note and then I get double the output.
Additional note: I just checked and relative links to the embedded js files in the webarchives stay the same too. (I was worried they may get converted, brought into the webarchive or somehow otherwise altered.)
Additional additional note: you can still edit the source of the web archives within Mac DT.