Page 1 of 1

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

Posted: 06 Feb 2019, 10:40
by fulalas
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?

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

Posted: 06 Feb 2019, 10:52
by beny
maybe i am wrong but leafpad work in this way drag the file into the window and you have it,no pdf..or exe

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

Posted: 06 Feb 2019, 11:37
by ncmprhnsbl
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..

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

Posted: 06 Feb 2019, 22:13
by fulalas
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:

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

Posted: 06 Feb 2019, 22:58
by ncmprhnsbl

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

Posted: 06 Feb 2019, 23:12
by fulalas
Wonderful! Thanks, man! :)

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