🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15182

Marking up a string

#15182
From: Rachel_Lomasky
Date: Mon, 22 Dec 2003 15:54
10 lines
1092 bytes
I would like to select a string of text, and then apply an XML tag to the entire string.

I have it working that I can mark up each character individually, but that's not quite what I want :)

I have the following code:
Set StringToBeMarkedUp = CurrentNode.Characters.ItemByRange (CurrentNode.Characters.Item(FirstCharIndex), CurrentNode.Characters.Item(LastCharIndex))
Set figureLinkTag = RootNode.XMLElements.Add("FigureLink")
figureLinkTag.Markup StringToBeMarkedUp

What am I missing?
Technical Details
Message-ID: <2ccf0b77.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,6c42974f368256b3,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-22 08:08:04 PST
From: Rachel_Lomasky@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Marking up a string
Message-ID: <2ccf0b77.-1@webx.la2eafNXanI>
Date: Mon, 22 Dec 2003 07:54:10 -0800
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit