Skip to main content
Participating Frequently
January 18, 2010
Question

How to paste text that is already formatted?

  • January 18, 2010
  • 3 replies
  • 2291 views

Hi all!

I've met a problem with pasting formatted text into Robohelp.

For instance, I need to copy an example code from Visual Studio to Robohelp.

If I paste it to MS Word - it pastes correctly with the source code formatting.

And of course I have the paste options like "Keep source formatting", "Match Destination Formatting" and "Keep text only".

How do I paste such formatted text into Robohelp's topic?

I don't see anything like "Paste special" or other option like in Word.


Robohelp pastes with option "Keep text only".


It takes a lot of time to format any source code example.

Please help.

PS: Robohelp7 and Robohelp8

This topic has been closed for replies.

3 replies

January 21, 2010

Hi,

Why not just take a screen shot and treat it as an image. You could index code items so people can llok for it etc...

Participating Frequently
January 22, 2010

If it will be a picture - how to copy and paste example code into the development environment?

The only way I see - is to convert formatted text into html and paste it into the html-code of a topic...

RoboColum_n_
Legend
January 29, 2010

From the info you have provided us, the snippet mentioned provides just what you want. It effectively allows you to copy and paste text complete with all formatting.


  • Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
  • Follow the RoboColum(n) on Twitter
Participating Frequently
January 18, 2010

Ok. Please take a look at the example below. I have a code block which I need to be inserted in Robohelp with the same formatting.

I have no HTML-code for it. I've copied it to Word. But how to copy the source code from Word or how to copy it to Robohelp?

RoboColum_n_
Legend
January 18, 2010

Have you looked at the snippet I mentioned?


  • Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
  • Follow the RoboColum(n) on Twitter
Participating Frequently
January 19, 2010

Yes, but I don't understand what it should do.

I've done all that is written, but don't understand how it should help me, sorry.

Peter Grainge
Community Expert
Community Expert
January 18, 2010

Mercifully when you paste from Word, it comes in as unformatted text. If it did not, it would have Word's version of HTML (hypertext mashed language!). I guess the same is happening with Visual Studio. Can you see the code in Visual Studio? If so you could try pasting at code level if the code is good.


See www.grainge.org for RoboHelp and Authoring tips

Follow me @petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
RoboColum_n_
Legend
January 18, 2010

Just wondering in Snippet 87 at this link might help.http://www.grainge.org/pages/snippets/snippets.htm.


  • Read the RoboColum(n) for a tips, tricks and musings on the Technical Communication Suite products.
  • Follow the RoboColum(n) on Twitter