Java to insert conditional text for file links with \ & /

This is the place to share H&M templates and utilities with other users. Topic templates can be posted as text attachments (*.txt) or in the posting itself between

Code: Select all

tags. Print manual templates (*.mnl) are digital and can only be posted as attachments. Utilities and multiple files can be posted in ZIP archives. Please include plenty of comments so that users understand what you're doing! Registration is required to access this forum.

Moderators: Alexander Halser, Tim Green

Post Reply
Tom Fiddaman
Posts: 5
Joined: Wed May 11, 2011 10:37 pm

Java to insert conditional text for file links with \ & /

Unread post by Tom Fiddaman » Wed Jun 29, 2011 5:11 pm

Over in this thread ... 22&t=10810 I posted a bit of Java code that parses xml topic files to insert conditional text, so that file links in .chm format use \ (backslash) and others (e.g. webhelp) use / (frontslash), so that links to files in subdirectories of the help system work on all platform/browser combinations. Use with caution, because this was quick & dirty for my particular issue, but hopefully it'll be helpful to others.


Post Reply