• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Clean up HTML source

New Here ,
Sep 10, 2007 Sep 10, 2007

Copy link to clipboard

Copied

The company that i work for has recently acquired a new product and I have been assigned to work on the documentation. The legacy docs that we have received ar so big that I've never come across such big help files. For example, there's one project that has about 1400 topics and it's total size is 265 mb. Thetre are at least 10 more projjects.

I opened one topic and realized that the people who worked on it before me embedded the style info in the HTM code.Before i add the new features etc. I would like to trim the file sizes. Cleaning up each file manually is going to take a lifetime, can you guys suggest some automated tasks that will make my task a bit easier?

Much Appreciate.

Views

456

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 10, 2007 Sep 10, 2007

Copy link to clipboard

Copied

Hi dsind and welcome to the RH community.

Your task of cleaning up the code could be difficult and time consuming. You may be able to use a find and replace tool ( FAR is my own personal favourite) but the problem you will have in the syntax of the styles used in the code. Is there a pattern to the code used? if not, the easiest option may be to manually go through each topic. You could "trap" the majority of topics using a find and replace tool first and then look at those topics that are trapped.

BTW 1400 topics is not particularly big so don't worry.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Sep 10, 2007 Sep 10, 2007

Copy link to clipboard

Copied

If you're going to have to clean up the code manually, which seems the only way out, here's a suggestion.

In the topic WYSIWYG mode, Select All, Copy, and then Paste into a basic text editor (Notepad, etc., but NOT MS WORD). Then Copy and paste selected blocks of content to over-write those blocks in the RH topic. Then, assign styles as needed from your style sheet.

Not easy, but significantly quicker than a methodical slash&burn through the TrueCode!


Good luck,
Leon

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 10, 2007 Sep 10, 2007

Copy link to clipboard

Copied

Colum McAndrew and MergeThis, thanks for your prompt answers.MergeThis I think I'll do what you've suggested.

BTW do you guys use the default WYSIWYG editor? I use EdItPlus, requires a lot of typing but does a very clean job.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 10, 2007 Sep 10, 2007

Copy link to clipboard

Copied

Personally I use a combination of the WYSIWYG and the Truecode tabs depending on what I need to do. Others import files from elsewhere. It's horse for courses and whatever works for you.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 10, 2007 Sep 10, 2007

Copy link to clipboard

Copied

Hmm, the WYSIWYG does add a lot of junk code that tends to make the help file heavy. Don't you think so?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 11, 2007 Sep 11, 2007

Copy link to clipboard

Copied

Yes but it isn't a problem for me. Have you thought of creating your source files in Dreamweaver and importing in the HTML files? Some RH users adopt this method because of the bloated code issue.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 11, 2007 Sep 11, 2007

Copy link to clipboard

Copied

LATEST
I follow something quite similar. I create a HTML templates and CSS and use this template while adding new topics.I use EditPlus as the HTML editor.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp