Modifying .TPL Files

Discussion in 'Directories' started by Dubz, Mar 28, 2007.

  1. #1
    Hi,

    I've been modifying some .TPL files and I found when I save it in notepad that that it looses it's structure and just becomes one continuous line.

    This happen to anyone else, what can I do to avoid this?

    Rob
     
    Dubz, Mar 28, 2007 IP
  2. toby

    toby Notable Member

    Messages:
    6,923
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    285
    #2
    you can either use wordpad or dreamweaver, should be ok.
     
    toby, Mar 28, 2007 IP
  3. Dubz

    Dubz Peon

    Messages:
    1,859
    Likes Received:
    156
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'll try that. Still works just it's alot harder to manage when it's all jumbled. Sloppy don't like it ;)
     
    Dubz, Mar 28, 2007 IP
  4. MeetHere

    MeetHere Prominent Member

    Messages:
    15,399
    Likes Received:
    994
    Best Answers:
    0
    Trophy Points:
    330
    #4
    If it becomes one line - Use Word Wrap feature - Look those notepad menu's :)
     
    MeetHere, Mar 28, 2007 IP
  5. balkanboy

    balkanboy Banned

    Messages:
    1,950
    Likes Received:
    245
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That is correct. Just check Word wrap and it should be ok.
     
    balkanboy, Mar 28, 2007 IP
  6. n-james

    n-james Well-Known Member

    Messages:
    1,367
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    165
    #6
    use notepad!
     
    n-james, Mar 28, 2007 IP
  7. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #7
    I believe your running into a Carraige return issue. Notepad doesn't see certain chars as Line Breaks (VBCrlf) whihc is chr(10) and chr(13) or Line break + Carriage return. Modify in Wordpad and you should be fine, or bring it into DReamweaver, tell it to Auto-Format then bring it back into notepad and save.
     
    ccoonen, Mar 28, 2007 IP
  8. Mark Bolyard

    Mark Bolyard Active Member

    Messages:
    240
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    75
    #8
    I use ultraedit for editing and coding which keeps format very well. As for your situation, I know Drhtml which I don't believe is online any longer, had a tool where you could enter unformated html and it would restructure it. With that being said, if you have saved your .tpl file and have no backup of the formated version, try searching Google for HTML online format tool, or something similar.
     
    Mark Bolyard, Mar 28, 2007 IP
  9. NeoGen

    NeoGen Writer

    Messages:
    2,303
    Likes Received:
    301
    Best Answers:
    0
    Trophy Points:
    230
    #9
    NeoGen, Mar 28, 2007 IP
  10. Dubz

    Dubz Peon

    Messages:
    1,859
    Likes Received:
    156
    Best Answers:
    0
    Trophy Points:
    0
    #10
    That is what I was looking for. It wasen't a word wrap issue. When you use wordwrap it just puts all the jibberish on one page. Will use Wordpad from now on. Just got off the phone with a good IT buddy of mine who suggested the identical response. Cheers everyone and Green coming your way!:cool:
     
    Dubz, Mar 28, 2007 IP
  11. rllunzmann

    rllunzmann Active Member

    Messages:
    1,796
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    80
    #11
    Hmm i prefer notepad, if you open with ---> notepad and save the file as the original extension, everything should be just fine. Be sure to verify if "word wrap" is being used too. You can find that on the "Format" menu
     
    rllunzmann, Mar 28, 2007 IP