View Single Post
  #1   Report Post  
Posted to microsoft.public.word.pagelayout
Jessica Jessica is offline
external usenet poster
 
Posts: 34
Default Cross-reference to code line numbers with following colon

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