I have about a 1000 links in my txt file and I don't want to copy paste them in my browser.

So I am looking for a text editor that highlights URLs and makes them clickable.Please note that I am looking for a text editor (like kate, sublime) and not a full IDE.

I have tried Sublime, Kate, gedit etc, but I can't figure how to highlight URLs and hyperlinks there

  • @AvinashRaj OmG! I said that I tried sublime, there is no highlighting – user3919096 Aug 14 '14 at 14:37
  • @EliahKagan I don't think this is a duplicate. OP isn't asking for a full Notepad replacement, they are asking how to replicate one specific feature in a text editor supporting Ubuntu. – Glutanimate Aug 14 '14 at 14:58
  • 1
    @Glutanimate You are right. While What are the alternatives to Notepad++ on Ubuntu? is relevant to this question, this question is specifically asking for editors that present hyperlinks in a particular way to the user. I have removed my close vote. – Eliah Kagan Aug 14 '14 at 15:01
  • 2
    I use Zim. I just added my old text files to Zim it it created directly click-able links. Only issue I have is with copy & paste into forums, it seems to have hidden formating or line ending and added extra blank lines. – oldfred Aug 14 '14 at 15:19
  • 1
    BTW, what are those links? Link to files (like pdf, jpg, png, exe, deb, zip, etc) that you want to download? In such a case, you can simply use wget to download all the links by providing it the --input-file or -i option; like wget -i /path/to/file/containing/links. – Aditya Aug 14 '14 at 15:58

It's too simple, just Open Terminal by using Ctrl+Alt+T and type:

    cat -n /File_Path/File_Name

With -n option you could see the line numbers of a file "File_Name" in the output terminal for easy to understand which line you clicked last time.

If file having large number of contains (like yours) that won't fit in output terminal and screen scrolls up very fast, we can use parameters more or less with cat command as show below.

    cat -n /File_Path/File_Name | less


    cat -n /File_Path/File_Name | more

Then you need to hold the Ctrl key down while left clicking to open links in a browser, or right click and select the context menu option "Open Link". enjoy

  • 2
    Or less YOUR_TEXT_FILE for easy paging with the keyboard. – Eliah Kagan Aug 14 '14 at 15:21

There's a Sublime plugin for this. From the Github description:

enter image description here

This plugin underlines URLs in Sublime Text, and lets you open them with a keystroke (Cmd+Option+Enter by default).

After you put the cursor over an URL, you can either hit Cmd+Option+Enter (Ctrl+Alt+Enter on Windows & Linux), or select "Open URL under cursor" from the Command Palette. Instead of selecting an auto detected URL, you can select any block of text and it will also open in a browser as a URL.

However, this plugin might not be the right choice for thousands of URLs:

Performance warning. The plugin is automatically disabled if the document has more than 200 URLs, in order to avoid a massive performance hit.

As with most Sublime plugins you can install Clickable URLs via Package Control.


In Emacs's org-mode the URLs are highlighted.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.