I need a add-on in Firefox for 'kladblok'

Kladblok is an old txt program inside Windows from Windows95 till Windows10. In the old Explorer browser you can add ‘kladblok’ to the menu, I use it to change the html of my website. But kladblok can only add to Explorer. Now I’m looking for the possibility to add it to Firefox too, but it seems impossible. Can anybody here on this forum help me out with this? Perhaps it’s possible to make such add-on?

PS; I’m sorry for any language mistakes, I’m a Dutch, Englisch is not my native language.

It took me a while to realize that you’re talking about https://en.wikipedia.org/wiki/Windows_Notepad

When you say “old Explorer browser”, do you mean https://en.wikipedia.org/wiki/Internet_Explorer or https://en.wikipedia.org/wiki/File_Explorer ?

Hi hans_squared,
sorry I was taking your time for this. The problem is that Windows has a text program called ‘notepad’ and a more simple text program that is called ‘kladblok’. You can call kladblok also as; scratch-pad but than only for text, not for drawings.
I just found out that Windows call it notepad too. I manage a picture of kladblok:
kladblok

Notepad is related to Office Word, Windows call it ‘write’. And Explorer is indeed the ‘internet explorer’, like firefox.

You probably mean Windows Notepad, because Windows Notepad’s Dutch Wikipedia page says:
Notepad (Nederlandse versie: Kladblok)

Screenshot from Windows 7, German version:

There’s also WordPad, a program that can open Microsoft Word documents.

Again a screenshot from Windows 7, German version:

P.S.:
I didn’t write this to be a smartass, I just want to make 100% sure that I know what you’re talking about…

Yesssss !!! you’ve found it!! :smiley:

It’s all about language switch. I’m glad you found what I meant ! The German language is related to Dutch and vice versa.

Is this how you’re doing it in Internet Explorer?

  1. Tell Internet Explorer to open HTML files with Windows Notepad (called “Editor” in German)

  1. Open the website in the current tab with Windows Notepad

yes, that’s how it works in internet explorer. But unfortunately it’s not possible in Firefox that way.

It’s meant for opening webpages in browsers, but you can configure the extension to open webpages in any program.
It works in Linux, but it should also work in Windows.

thank you for trying Hans_squared, but after I’ve download and install it didn’t work.

Firefox doesn’t “write” to websites, so although you could open a page in an editor, Firefox would not be able to upload the page for you, you would need to use another program for that.

To change from the built-in source code viewer to an external editor, you could do the following. However, please see the note after these steps:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste view_source and pause while the list is filtered

Firefox will display preferences related to both the internal viewer and a possible external viewer.

(3) Double-click the view_source.editor.external preference to switch the value from false to true

(4) Double-click the view_source.editor.path preference to display an editing field. This is where you will enter the path to Windows Notepad. I’m not sure exactly where it is on your system, but for example:

C:\WINDOWS\system32\notepad.exe

When you enter this in about:config, you need to double the backslashes because they are a reserved character. So that would be:

C:\\WINDOWS\\system32\\notepad.exe

After entering the path, press the Enter key or click the blue check mark button to save the change.

What to expect after this change

When you call up View Page Source (Ctrl+U), Firefox will save the original HTML source of the current page in the Temp or download folder and launch it in Notepad. Firefox cannot match up the current page source with a version saved on your computer. Maybe it’s useful anyway???

Hi jscher2000,

Thank you for this good explanation, but I’m afraid I don’t have enough knowlegde about this

To do it. I will keep on using internet Exlorer to open the website pages, if I have to change them.

Kind regard,

Marja

Verzonden: zondag 23 januari 2022 21:13







jscher2000
January 23

ympkw46:

… I use it to change the html of my website.

Firefox doesn’t “write” to websites, so although you could open a page in an editor, Firefox would not be able to upload the page for you, you would need to use another program for that.

To change from the built-in source code viewer to an external editor, you could do the following. However, please see the note after these steps:

(1) In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button accepting the risk.

(2) In the search box in the page, type or paste view_source and pause while the list is filtered

Firefox will display preferences related to both the internal viewer and a possible external viewer.

(3) Double-click the view_source.editor.external preference to switch the value from false to true

(4) Double-click the view_source.editor.path preference to display an editing field. This is where you will enter the path to Windows Notepad. I’m not sure exactly where it is on your system, but for example:

C:\WINDOWS\system32\notepad.exe

When you enter this in about:config, you need to double the backslashes because they are a reserved character. So that would be:

C:\WINDOWS\system32\notepad.exe

After entering the path, press the Enter key or click the blue check mark button to save the change.

What to expect after this change

When you call up View Page Source (Ctrl+U), Firefox will save the original HTML source of the current page in the Temp or download folder and launch it in Notepad. Firefox cannot match up the current page source with a version saved on your computer. Maybe it’s useful anyway???

I think ympkw46 wants to edit HTML pages on a local hard disk.

IE lets you open local HTML files in Notepad.
So you open the main (locally stored) page in IE, navigate around to other (also locally stored) pages, and when you find something you want to change, open the current page in Notepad.
Your solution using about:config is perfect for this use case.

(And yes, when you’re done editing, you need to upload the changed pages with a separate progam, like an FTP client.)

It’s even possible with Open With, but not out of the box.
It works if you configure OW to run this batch file:
(tested on Windows 10)

@echo off
SETLOCAL ENABLEDELAYEDEXPANSION

REM The first and only parameter contains the absolute path of the file to be opened with notepad.exe
set file_path=%1
REM Remove the file:/// prefix
set file_path=%file_path:file:///=%
REM Replace escaped spaces with actual spaces
set file_path=!file_path:%%20= !

REM Without the start command, Windows opens a command prompt window that only closes when you close Notepad.
start "" notepad.exe %file_path%

ENDLOCAL