jEdit Community - Resources for users of the jEdit Text Editor
How to change URL into hyper lnk in text file?
Submitted by kenweb on Wednesday, 3 March, 2004 - 04:45
Is there a way to make the url in my text file (e.g. http://www.sun.com) into a hyper link so I can just click on it and have it open in a browser instead of copying the url as I have to do now? Don't know if this is possible.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
Open in Browser
by raster on Wed, 03/03/2004 - 15:29
There should be macros that allow you to select the URL and run a macro (macro menu, contextual menu, toolbar button, key combo) to open the URL in the browser of your choice. Not quite what you want, but better than copy/paste. I think the InfoViewer plugin might be something to look at as well.
 
Thanks Raster. I did not find
by kenweb on Thu, 04/03/2004 - 00:57
Thanks Raster. I did not find contextual menu under my macro menu and I can not find much information on the web about contextual menu either. However, I installed InfoViewer and it works. I will record a macro to do the display to reduce the number of steps. thanks.
 
Ok..here is how to do it:
by kenweb on Thu, 04/03/2004 - 07:56
Ok..here is how to do it:

* Install InfoViewer plugin
* make the following macro file open_url.bsh


// This macro looks for url from the position of the cursor down
// and open the first url it finds in a browser window through InfoViewer

SearchAndReplace.setSearchString("\\bhttp://[^ ]+\\b");
SearchAndReplace.setAutoWrapAround(false);
SearchAndReplace.setReverseSearch(false);
SearchAndReplace.setIgnoreCase(true);
SearchAndReplace.setRegexp(true);
SearchAndReplace.setSearchFileSet(new CurrentBufferSet());
SearchAndReplace.find(view);
infoviewer.InfoViewerPlugin.openSelectedText(view);


* Add context menu item for quick access.
Utilities -> Global Options -> context menu and add + this macro in.

so now when you want to open an url, bring cursor to a line above the url, right click and select open url from the context menu and the page will be displayed in a web browser.
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82348
Context Free Art (*.cfdg)   0.31   46055
JBuilder scheme   .001   18495
BBEdit scheme   1.0   18116
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293