4 Replies Latest reply on Jun 1, 2016 11:02 AM by Captiv8r

    Snippets through selection

    AnantSabane Level 1

      I want to create snippets based on the text that I select in a topic. As I need to create a huge collection of snippets library, I was wondering if there is any feature or ready-made script available that helps me with converting individual table rows as snippets, it would save a lot of time for me in creating snippets. Can anyone please guide me on this?

        • 1. Re: Snippets through selection
          Captiv8r Adobe Community Professional & MVP

          Hi there


          Unfortunately, my crystal ball appears to be cracked and my psychic skills are sub-par today. As a result, I'm unable to divine the version of RoboHelp you may be using.


          In later versions of RoboHelp, you have the capability of selecting across a block of text, right-clicking and choosing to Add to > Snippets.


          Kind of curious about why the need for as many as you think you may be needing though.


          Also, if your goal is to have a snippet be a row of a table, I'm not sure that you will be able to realize that goal. I note that when I have a table and select the row, the context menu DOES present the Add to bit, but Snippets is disabled (or greyed out as so many like to refer to it). So even if you were able to get a table row added as a Snippet, it likely wouldn't work well to seamlessly insert into an existing table or even append onto an existing table.


          Cheers... Rick

          • 2. Re: Snippets through selection
            Peter Grainge Adobe Community Professional (Moderator)

            I found the same as Rick but wondered if you could create the snippet and then add the table directly into the snippet, maybe at HTML level. However, like Rick, I think it might not insert neatly into another table. A bit of trial and error in a dummy project maybe?


            See www.grainge.org for RoboHelp and Authoring information




            • 3. Re: Snippets through selection
              Captiv8r Adobe Community Professional & MVP

              Yeah, I just tested this in a dummy topic. I had inserted a table consisting of two rows by two columns.


              Then I added some text to each column of one row.

              I then selected the row and changed to HTML view. Copied only the TR down to the /TR tags.

              Added that to a snippet. I had to simply switch to HTML view in order to add it.

              Upon adding the snippet to the existing table, it wasn't quite what I'd hoped.






              Cheers... Rick

              • 4. Re: Snippets through selection
                Captiv8r Adobe Community Professional & MVP

                Annnnd here's how it behaved if I just created a single row two column table in the snippet.




                Cheers... Rick