1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Notepad Question

Discussion in 'Programming & Webmastering' started by Asylum, May 21, 2012.

  1. Asylum

    Asylum

    Joined:
    Jul 18, 2008
    Messages:
    2,855 (1.15/day)
    Thanks Received:
    703
    Location:
    South Carolina
    When I open my student files in notepad they span all the way across the page.

    How do i get them to display downward in order so they are easy to read?


    Example:
    [​IMG]
     
  2. Vrgn86 New Member

    Joined:
    Oct 12, 2005
    Messages:
    172 (0.05/day)
    Thanks Received:
    15
    Click Format then "word wrap".
     
    Asylum says thanks.
  3. Aquinus

    Aquinus Resident Wat-man

    Joined:
    Jan 28, 2012
    Messages:
    7,325 (6.19/day)
    Thanks Received:
    2,785
    Location:
    Concord, NH
    Well, it looks like you only have two real lines. The rest is just a bunch of run on HTML. I would recommend just formatting it using a text editor or IDE that handles indenting and such for you.

    If you're HTML is valid, you should be able to at least get each tag on a line by itself using the following command (with regex) in VIM. You should be able to style the rest yourself.

    Code:
    :%s/\</\r\</g
     
    Asylum says thanks.
  4. Asylum

    Asylum

    Joined:
    Jul 18, 2008
    Messages:
    2,855 (1.15/day)
    Thanks Received:
    703
    Location:
    South Carolina
    Yea thanks, Just found it while I was waiting.
     
  5. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    14,748 (6.18/day)
    Thanks Received:
    4,412
    Location:
    IA, USA
    I think Notepad only parses \r\n as a new line and not \n. Wordpad does.

    Better yet, use something like EditPlus that syntax highlights HTML.
     
    Crunching for Team TPU
  6. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,596 (2.54/day)
    Thanks Received:
    3,185
    Location:
    Statesville, NC
    I like using Notepad++. It has about ever language to code in. :toast:
     
    Crunching for Team TPU
  7. Asylum

    Asylum

    Joined:
    Jul 18, 2008
    Messages:
    2,855 (1.15/day)
    Thanks Received:
    703
    Location:
    South Carolina
    Yea i picked that up last night.

    Works much better than regular notepad.
     

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page