I wish DTP would recognize syntax and colorize accordingly (like TextMate) which would make it a great snippet-storing app (beyond all the other great things it does already). Maybe it could have some sort of TextMate bundle recognition plugin ?!?
Thanks for thinking about this
Thanks for the suggestion! As DEVONthink isn’t really a developer’s tool, that’s unlikely at the moment but we might consider it for future releases.
I guess most users would prefer us to spend time on improving the strengths (and fixing the shortcomings) instead of trying to be everything for everyone (and in the end nothing for noone
If you use TextMate, consider using the “Create HTML from Document” choices in the TextMate bundle, import that, and make a link to your original on disk.
I think TextMate supports a URI scheme (ie like: “mate://”), but can’t locate info on it right now…
Here it is, from the manual:
21.2 URL Scheme (HTML)
The txmt URL scheme allows you to open files in TextMate via hyperlinks found for example in HTML documents (anchors). These can refer to local files which can be useful when:
Using commands with HTML output that indicate errors/warnings with the current document, or refer to other documents in your project.
If you are generating a set of web-pages from simpler (text) files you can have these link to the original text files, so that when you are inspecting the generated result (in a browser) you can quickly edit the source of each page by following the txmt:-link.
The URL scheme is txmt: and currently has one command named open. This command takes up to three arguments:
url — the (file) URL to open (e.g. url=file://~/.bash_profile), if this is left out, the current document is targeted.
line — the line on which the caret should be placed after opening the file (e.g. line=11).
column — the column on which the caret should be placed after opening the file (e.g. column=3).
Actually with Quicklook was able to make syntax be visible.