Read the Beforeitsnews.com story here. Advertise at Before It's News here.
Profile image
By Pluralist Speaks
Contributor profile | More stories
Story Views
Now:
Last hour:
Last 24 hours:
Total:

Activating Web Links in a Text (HTML) File

% of readers think this story is Fact. Add your two cents.



This probably means nothing to most and is clumsy to a very few. But it works. And a more efficient method was sent to me that does not always work…

What follows is relevant to a piece of software called NoteTab Light. I have used it for years. every fortnight I make a webpage that I append to another webpage and upload to my website. It contains links to webpages that are labelled and described. The Pure Text editor will save a pure text document to HTML with paragraph tags and other essential code, within a template the user can make (as I have). But the links are simply as they were. You could copy, paste into the URL browser area and activate them that way. But as we all know, we click on links.

Many a Rich Text Format editor (it allows some formatting like bold and italic, a pure text file does not) will display links as active, but only a very convert to HTML with active links. Copywriter is one, but does not recognise https:// because it is old software. Other big Word Processers (with complex formatting) will not activate links until RETURN is pressed, and then saving to HTML produces ridiculously user-unfriendly complicated and repetitive code.

NoteTab Light has clips to do more with both flat text files and the HTML files (and XML). And I have written one that works and with one press activates all links in a file. And here it is:

^!SetScreenUpdate Off
^!ClearVariables

^!Jump Doc_Start
:Loop1
^!Find “http://” S
^!IfError END1
^!MoveCursor 1
^!Select Url
^!Set %url%=^$GetSelection$
^!InsertHTML ^%url%
^!Goto Loop1
:END1

^!Jump Doc_Start
^!ClearVariables

:Loop2
^!Find “https://” S
^!IfError END2
^!MoveCursor 1
^!Select Url
^!Set %url%=^$GetSelection$
^!InsertHTML ^%url%
^!Goto Loop2
:END2

^!SetScreenUpdate On

It depends on the very useful ^!Select URL, because it grabs the URL – although moving the cursor by 1 just makes sure you are on it rather than to its left. I like to make sure, so I have two loops so to include the https and the http. Each loop means the same instruction happens as the finding goes down the document and the ‘error’ is when there are no more URLs left to find. I am told I could use a ? for the s or no s in https and thus have one loop but I have not seen this ? in the help file. The screen writing is switched off so it is quicker. S also means a silent Find – no messages. I think screen updating comes on automatically at the end, but I like to be sure.

It’s not my skill, such code writing, but I can see enough how others do it to put something together to achieve something else.

Liberal and Thoughtful Website creator; critical examiner of social sciences and theology, religious liberal, ‘terror blogger’.


Source: http://pluralistspeaks.blogspot.com/2017/07/activating-web-links-in-text-html-file.html


Before It’s News® is a community of individuals who report on what’s going on around them, from all around the world.

Anyone can join.
Anyone can contribute.
Anyone can become informed about their world.

"United We Stand" Click Here To Create Your Personal Citizen Journalist Account Today, Be Sure To Invite Your Friends.

Please Help Support BeforeitsNews by trying our Natural Health Products below!


Order by Phone at 888-809-8385 or online at https://mitocopper.com M - F 9am to 5pm EST

Order by Phone at 866-388-7003 or online at https://www.herbanomic.com M - F 9am to 5pm EST

Order by Phone at 866-388-7003 or online at https://www.herbanomics.com M - F 9am to 5pm EST


Humic & Fulvic Trace Minerals Complex - Nature's most important supplement! Vivid Dreams again!

HNEX HydroNano EXtracellular Water - Improve immune system health and reduce inflammation.

Ultimate Clinical Potency Curcumin - Natural pain relief, reduce inflammation and so much more.

MitoCopper - Bioavailable Copper destroys pathogens and gives you more energy. (See Blood Video)

Oxy Powder - Natural Colon Cleanser!  Cleans out toxic buildup with oxygen!

Nascent Iodine - Promotes detoxification, mental focus and thyroid health.

Smart Meter Cover -  Reduces Smart Meter radiation by 96%! (See Video).

Report abuse

    Comments

    Your Comments
    Question   Razz  Sad   Evil  Exclaim  Smile  Redface  Biggrin  Surprised  Eek   Confused   Cool  LOL   Mad   Twisted  Rolleyes   Wink  Idea  Arrow  Neutral  Cry   Mr. Green

    MOST RECENT
    Load more ...

    SignUp

    Login

    Newsletter

    Email this story
    Email this story

    If you really want to ban this commenter, please write down the reason:

    If you really want to disable all recommended stories, click on OK button. After that, you will be redirect to your options page.