2

I have a pdf containing the following code:

#!/bin/sh
echo
echo “**** Pulling changes into Dev [Hub’s post-update hook]”
echo
case “ $1 ” in

If I copy and then paste that code on my terminal, after doing pico myhookname I get this:

#!/bin/sh
echo
echo ?^?^?**** Pulling changes into Dev [Hub?^?^?s post-update hook]?^?^?
echo
case ?^?^? $1 ?^?^? in

How can we properly format the .pdf file so that, when we copy paste, we get the proper code on or file ?

Here is an image of how the pdf looks like:code snipped - pdf file

If the problem relies not on PDF but on the original program that have created this (inDesign in this case), does anyone know a way to insert code, so that when we copy paste, it just works ?

ps - Those as hooks btw, and it's very dummy to, each time I wish to start a development, I have to write on hand all necessary hooks. :/

MEM
  • 1,387

1 Answers1

0

Use straight quotation marks (" ") when you’re typing code. (...) In InDesign, you can change a preference setting to determine which quotation marks are used. You can read more about it in the Use quotation marks Help topic.

reference: http://blogs.adobe.com/indesigndocs/2009/05/5_typing_rules.html

If you can't have access to the original file and still want to fix the quotes related issues, you can copy paste your contents to Text Wrangler application and choose Text > Straighten Quotes

MEM
  • 1,387