PRE Section for code snippet

  1. javanotes profile image61
    javanotesposted 9 years ago

    Hello,

    When making a tutorial with programming code, it's not very readable because all the tabs are gone (example: http://hubpages.com/hub/Netbeans-HelloWebApp ).

    So an option for keeping tabs (<PRE></PRE>) would be useful.

    Thanks.

  2. pauldeeds profile image
    61
    pauldeedsposted 9 years ago

    You can select preformatted in the formatting dropdown.

  3. Paraglider profile image89
    Paragliderposted 9 years ago

    Hi Paul -

    I've not had much success with 'preformatted'. It works on a line by line basis, but pasting a block of text doesn't work. Only the first line is preformatted - successive lines are unformatted.

    Fortunately, for block text, Heading 4 works well!

 
working