Repository navigation
Replies: 3 comments 2 replies
|
Well, to get the .txt file to render properly as an .md with a table the text files need some work. So, I'm confused as to why after renaming the .txt files with a .md extension they are presented as as you wish them to be. But if you wish to do this, you may need to press Apply File Associations ( at the bottom of the scroll down ) in addition to pressing Apply. If you are looking for the ASCIIMath Syntax tables, they are documented at https://asciimath.widcard.win/en/introduction/. Best I can do as of tonight. |
|
Let me formulate it the other way round then. When I take a real .md file, like one of the 5 found in the DopusWorX sources download, under /samples/showcase, and I give it a .txt extension, it does not show up in DOpus as it does with the .md extension. This in spite of the fact that in the File types settings I've set the File type entry "Plain text" to the value "Markdown" (and all 3 checkboxes checked). Why is that? EDIT: I have (for now) solved it by adapting my 'open text file' button script to automatically renaming the selected .txt file giving it the .md extension (and auto-rename it back to .txt after two seconds, when the file is already open, or being loaded). This works just fine. |
|
You were not doing anything wrong, and the rename script was good band-aiding. The File types mapping only reached the syntax highlighting. The decision about which view to open a file in happened earlier and went off the extension, so setting Plain text to Markdown recoloured the file but still opened it as plain text. That is why a real .md renamed to .txt looked nothing like the original. It is fixed, and it will be in the next release. I will update this thread when it goes up and you can drop the rename script then. Sorry about not getting back sooner I've been consumed. And thanks @DOpusUserDavid for jumping in and helping out. I will be honest in saying that juggling 150 languages times map highlighter tokens times file types and then ensuring that the atomic file operations and back-end redundancy cache play, became a bit of a jungle.If I was doing it again I wouldn't :) . I do apologise if anything else crops up, but hopefully that's most of it. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is the most professional DOpus extension I have ever seen. Even the update from within the extension itself works perfectly.
I have nevertheless one (small) issue. I have quite some text files that contain 'ascii-text tables' - by which I mean text put within columns made up of pipe symbols. This is still something often used when simple text files are preferred for distribution, with a simple .txt extetion. They contain tables like:
| some text | more text, column 2|
| line two text | and more text, col 3|
| et | cetera |
(which only show correct in a tool that, for instance, use Courier, or another fixed-width character set.
The presentation in DopusWorX seems ok when I rename them with an .md extension, but as text files, after associating the .txt extension with the markdown type, it doesn't seem to work. So is the only possibility to rename all those txt files?
All reactions