PRE Section for code snippet

  1. javanotes profile image53
    javanotesposted 10 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
    80
    pauldeedsposted 10 years ago

    You can select preformatted in the formatting dropdown.

  3. Paraglider profile image94
    Paragliderposted 10 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