Cross-reference to code line numbers with following colon

J

Jessica

I need to cross-reference line numbers in code. The code lines are numbered
using Word's numbering, with a trailing colon and tab after each number:

1: var blah = function blah(firstparam)
2: //bunch of eventlisteners

etc.

When I use the Word cross-ref feature, it includes the trailing colon, so I
get things like "The event timer is defined in line 14: then set off in line
15:."

Is there any way I can get just the number and not the colon, without having
to manually edit each xref?

Thanks,

Jessica
 
J

Jessica

After some research, I found the Ref parameter that promises to eliminate the
trailing period...but it only works if the character is a period. If you use
anything else, it just does not work.

This is what I calls a bug, or a design oversight, or something.

Still, are there any suggestions for ways to get around this?

- Jessica
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top