• By saying print I want to output the text so that I can copy it and paste it somewhere else.

    Regarding preserving formatting just do an exercise of printing an stored procedure containing minimum 30 000 chars. Preserving formatting does not mean that the color of the keywords but it means the word should not be broken in two lines like CON

    VERT. Because it throws error.

    Thanks

    Pankaj