save-text-to-file-firefox
save-text-to-file-firefox copied to clipboard
Save as HTML with target url and title tag
I'm really bad at coding, so I just changed .csv file saving and datestampinline function in Chrome.js
It's here
fileName = (Preference.get('format') === 0 ? Utils.sanitizeFilename(fileName) + ".txt" : Utils.sanitizeFilename(fileName) + ".html");
And here
if (Preference.get('datestampInLine')) { string += '<TITLE>Note from ' + dateString + '</TITLE>' + '\u000D\u000A' + '' + '\u000D\u000A' + '' + '\u000D\u000A';
Can you add it as "Save as HTML" in next release?
just to understand better, currently the addon allows users to save files as either .txt
or .csv
.
are you suggesting a third option i.e .txt
, .csv
or .html
?
Yes. It's quite useful when I need locally save instructions with html markup. When I save text with "As HTML" option, it's only logical to open it with browser instead of notepad. But it also need some additions for save as valid html, like TITILE tag and charset meta-tag. I'm also add source url in comment. My notes start with: TITLE>Note from 01-07-2015</TITLE> meta charset="utf-8"> !-- URL: http://geekyogi.com/post/24692879082/android-build-prop-tweaks-root-only -->
@Null-Kelvin is this what you want? github.com_bobbyrne01_save-text-to-file-firefox.html.zip