[SOLVED] How to open any file inside a text editor?

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
fulalas
DEV Team
DEV Team
Posts: 1258
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

[SOLVED] How to open any file inside a text editor?

Post#1 by fulalas » 06 Feb 2019, 10:40

This is so annoying! In Windows you can drag 'n drop any file to a Notepad-like program and it will load the file as a text, no matter the extension. But this doesn't seem trivial to do on Linux. Any ideas?

beny
Full of knowledge
Full of knowledge
Posts: 757
Joined: 02 Jan 2011, 11:33
Location: italy

Re: How to open any file inside a text editor?

Post#2 by beny » 06 Feb 2019, 10:52

maybe i am wrong but leafpad work in this way drag the file into the window and you have it,no pdf..or exe

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1758
Joined: 20 Mar 2012, 03:42
Distribution: 4.0-64bit all-DE+more
Location: australia
Contact:

Re: How to open any file inside a text editor?

Post#3 by ncmprhnsbl » 06 Feb 2019, 11:37

i think you're right beny, dragndrop seems to work with leafpad ..
provided the file is plain text(otherwise it's not very readable, eg try a .png), it doesn't matter what the extension is.. even made up ones..
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 1258
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: How to open any file inside a text editor?

Post#4 by fulalas » 06 Feb 2019, 22:13

ncmprhnsbl wrote:
06 Feb 2019, 11:37
provided the file is plain text
That's the thing. I want to open any kind of file! Why it refuses to open binaries? :unknown:

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 1758
Joined: 20 Mar 2012, 03:42
Distribution: 4.0-64bit all-DE+more
Location: australia
Contact:

Re: How to open any file inside a text editor?

Post#5 by ncmprhnsbl » 06 Feb 2019, 22:58

Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 1258
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

Re: How to open any file inside a text editor?

Post#6 by fulalas » 06 Feb 2019, 23:12

Wonderful! Thanks, man! :)

Here's a xzm module for ghex: https://www.mediafire.com/file/3ohriwel ... 6_64-1.xzm

Post Reply