Add web links to text

I’m writing a blog and want to add links by highlighting the relevant words, then adding the web link to them (ie. so that the words become the link). Is there a way of doing this in Scrivener?

I’ve tried a search and can’t find the answer. If this has been answered before, please help by posting a link to the relevant thread. Many thanks.

You can select text and use the Edit/Link... command to add hyperlinks to the text.

I am so sorry - that was an obvious place to look! I suppose I was expecting it on a context click and / or an on-page icon.

Many thanks, and apologies for the idiocy on my part!

b

Idiocy is what some of us specialize in. No need to worry about it too much. Although if you become a repeat offender you may find yourself shackled to the likes of vic-k…

Same question, but pertaining specifically to a Windows PDF on the same computer but not within the Scrivener project-- When I attempted to follow AmberV’s advice to bruise, I selected the text and clicked on, in turn, “Edit,” “Link,” and “File.” Confronted with the blank field preceded by “File://,” I went to the folder, copied the folder address as text, pasted it into the blank field, followed by “”, then copied and pasted the entire name of the file, including “pdf,” into the field after the “.” It looks like a legitimate hyperlink and even reads like one in the screen tip; however, when I click or Ctrl/click on it, nothing happens. Am I doing something beyond Scrivener’s parameters?

Just to be clear, I’m a pacifist. :slight_smile:

Disclaimer: I’m not around a PC at the moment to test, so I’m just relaying standards here. We may very well have an internal converter that attempts to fix Windows paths to URIs, and what you’re experiencing is another problem, like not fully expressing the path to the file in question. But I would still try properly formed URIs first.

Here are some tips from Wikipedia on how to form a file URI. It’s important to note that a Windows path is not equal to a URI, and forward slashes are never used in the latter. These two following examples are equivalent, but only valid in their own context (IE is one known exception, it will take an invalid URI as a valid link to a path):

[code]C:\Path\to\my\file.txt

file:///C:/Path/to/my/file.txt
[/code]

AmberV wrote:

Right: I guess I am scrupulous to a fault in rendering people’s names per their apparent preferences–in this case, a lower-case “bruise,” inadvertently producing a suggestion that you advocated battery.

Your instinct was correct: My URI was improperly formed. When I added a “/” inside the field and changed each “” to a “/,” the resulting hyperlink responded appropriately, even to opening the PDF in its default window. Now that I know my hyperlinks will be safe, I am ready to commit to Scrivener. Thank you very much.

Ha, I didn’t even notice that the OP’s handle is ‘bruise’, hence my confusion.

Glad to hear it is working; hope the software works out well for you.

Scrivener 1.7.2 escapes the backslashes that Windows Explorer gives you when copying the address, so usually they’ll still work after compile. You will need to add the slash at the beginning of the path, though, as Windows won’t give you that automatically when copying the path.

An easier alternative is to just drag and drop the file from Windows Explorer to the link field in Scrivener. That method will automatically supply the forward slash at the start of the path and will render the whole thing with forward slashes, which is more readable as well as being more universal.

Excellent, I figured that would be the case since Scapple made drag-and-drop easy. Thanks.