customProperties or similar for words in a field?

Richard Gaskin ambassador at fourthworld.com
Sat Oct 10 21:24:19 EDT 2015


Scott Rossi wrote:

> I probably don't understand the scope of the problem, but barring the use
> of wordOffset (am guessing some of your strings are multiple words),
> perhaps you could use htmlText with custom tags, i.e. <datecode>Sept 10,
> 2015</datecode> and render the text as htmlText.  In theory, the tags
> won't be shown to the user, but will be present in the htmlText.

Custom HtmlText tags are lost once the htmlText is set, but you can 
store arbitrary hidden text in a field using the span tag with a 
metadata attribute:

<p>Hello <span metadata="hidden text">World</span></p>

See p11 of the v5.5.4 Release Notes for useful info on that and other 
supported htmlText tags:
<http://downloads.livecode.com/livecode/5_5_4/LiveCodeNotes-5_5_4.pdf>

The Dictionary entry for the htmlText property has been updated for most 
tags added in v5.5.4, but not span - reported:
<http://quality.runrev.com/show_bug.cgi?id=16191>

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list