The home on the web of Colin Walker.
Find out more on /about, say /EHLO, or tune in to the daily RSS feed.
2021/10/22#p1
Happy Friday.
Hashtags on the blog automatically get rendered as search links for that tag but I'm also thinking of adding additional markup to search for whatever text is within it. That would enable me to do searches without having to worry if a hashtag had been included. I just need to decide on the actual markup to use.
No comments yet
Leave a reply
2021/10/22#p2
Search markup is now in place – I decided on surrounding the search term in single '$' signs. Search links are indicated by a double underline.1

There is a bit of logic in place to prevent incorrect replacements when there are extra $ signs in a post.
-
I should update hashtag links to follow suit – done! ↩
No comments yet
Leave a reply
2021/10/22#p3
I've had to change the search markup to double $ to avoid messing up code blocks with PHP variables.
No comments yet
Leave a reply