save-text-to-file-firefox icon indicating copy to clipboard operation
save-text-to-file-firefox copied to clipboard

Save as HTML with target url and title tag

Open Null-Kelvin opened this issue 9 years ago • 3 comments

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?

Null-Kelvin avatar Feb 27 '15 06:02 Null-Kelvin

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?

bobbyrne01 avatar Jun 12 '15 14:06 bobbyrne01

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 avatar Nov 09 '15 12:11 Null-Kelvin

@Null-Kelvin is this what you want? github.com_bobbyrne01_save-text-to-file-firefox.html.zip

GreenLunar avatar Jan 30 '22 12:01 GreenLunar