[ Previous: J. Limited-Length and Plain-Output Modes | Next: L. Styles, Colors, and CSS Considerations ]
It can be useful to have NBBC detect URLs (web addresses) and e-mail addresses and turn them into links. For example, consider the following text:
It would be nice if the "www.google.com" there was clickable, and NBBC includes a feature for making it just that. With URL autodetection enabled, anything that looks like part of a web address, a URL, or an e-mail address will be turned into a link, like this:
URL autodetection picks out domain names (like "www.google.com"), URLs that use the HTTP, HTTPS, or FTP protocols (like "http://www.google.com"), and e-mail addresses (like "larry@example.com") and turns them into links. It uses a template system just like BBCODE_MODE_ENHANCED does to transform them, so you can even make any of the results below possible:
For additional documentation on templating, see the FillTemplate() function, which is shared by all of the template code in NBBC and can be used in your own programs as well; and also see the list of template flags.
[ Previous: J. Limited-Length and Plain-Output Modes | Next: L. Styles, Colors, and CSS Considerations ]