This is a discussion on "League Table From Notepad" within the Web Page Design section. This forum, and the thread "League Table From Notepad are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
League Table From Notepad
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
League Table From Notepad
Can anyone please help with uploading League Tables that are sent to me in a Notepad.txt file.
Every week I receive a list of results and league tables in a Notepad file that in Notepad are all in line and easily readable but when pasted in to an html file via Front Page the table looses its format and is all out of line. I know how to make tables from scratch but as I receive over 24 league tables per weekend it would be much appreciated if someone knows how to enter the Notepad text, to keep the table format. The table appears as follows via Front Page but looks perfect in Notepad. Team P W D L F A Pts Team 1 FC 12 10 1 1 55 12 31 Team 2 FC 10 9 1 0 43 7 28 Team United FC 11 7 1 3 46 12 22 Team RANGERS FC 14 5 5 4 33 24 20 Team City 13 5 2 6 35 36 17 Team TOWN COLTS 12 4 3 5 34 20 15 Team FC 14 4 2 8 25 48 14 Team COLTS. 15 3 2 10 18 67 11 Team WEL TIGERS. 13 1 1 11 11 74 4 Any help would be appreciated. |
|
|
|
||||
|
Re: League Table From Notepad
Could you not just use a template and copy and paste them into that?
__________________
Last Blog Entry: A Royal Mistake (Feb 20th, 2008)
|
|
|||
|
Re: League Table From Notepad
i didn't think notepad had any formating? i thought it was a wordpad thing.
The easiest thing would be a simple php script for updating, if your server supported that... it'd probably be about tutorial 6ish on any beginners guides to php. Failing that you just need to do a little bit of extra leg work... However i have no experience using front page... have you tried doing it manually? i know front page has tons of issues with the code it outputs. Can you submit the html code generated by front page? So we can see exactly what it's doing with its code? You might be better c&p it into word, and format it, i'm pretty sure formatting in word can be copied/pasted. |
|
||||
|
Re: League Table From Notepad
the editor is irrelevant. You are sent these weekly in plain text and NOT html....
Therin lies your problem. either convert them to an HTML table yourself or have the person make a table and send you the HTML.
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Re: League Table From Notepad
Some editors adapt the syles tho, for example if you copy text of the internet
into word it keeps the styling, unlike some editors or older versions of word, however it would only work in reverse with a wysiwyg editor, and probably not all of them. |
|
|||
|
Re: League Table From Notepad
Thanks for everyones input.
Unfortunately I have tried copy and pasting in to Word and saving as an html file and several other options, but Notepad does not hold any useful formatting at all. The tables look good in Notepad but once transferred to an html document all table formatting is lost. I will look at the php scripts as suggested to see if suitable. Its a shame as what is only a 2 min job with c&p, actually changing into proper tables for 20 leagues would take hours, unless anyone knows different! |
|
|||
|
Re: League Table From Notepad
It should be quite easy.
One thing maybe will make it a little easier, get an editor like Note Tab Light that shows end of line too. Then follow these steps: 1. Copy your text into Note Tab Light as is.
6. Add
7. Add
8. Get rid if the underlines placed in Step 2. and put back the " " spaces (replace again)
9. Save as whatever.html |
|
|||
|
Re: League Table From Notepad
Thanks for the suggestion.
It looks as though there is a step missing, as everything except the 'Teams' are included in the table, the teams are listed above the table, whilst all the points etc are listed nicely in the correct Table format, but it looks promising. |
|
|||
|
Re: League Table From Notepad
OK
Step 4 a Replace "Team_" with "" (null string)
and 4 should read: With the REPLACE TEXT function replace "^P" (line feed/end of line) with "</td></tr><tr>^P"<td> Final result after formating:
Last edited by shalom_m; Apr 18th, 2008 at 10:48. |
|
|||
|
Thanks for the amendment, which now appears to give a good formatted League Table and the programme is Free!
All now left is to find out how to use it. Thanks for your help. |
|
|||
|
Re: League Table From Notepad
There is more than one way to skin a ........ (insert whatever is culturally, politically and morally correct for you)! Alternatively You could write a routine in VB or C# to do the above. or Use Excel to do the same. |
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Another NotePad++ question | dhall | Starting Out | 0 | Aug 21st, 2007 16:57 |
| Notepad++ question | dhall | Starting Out | 3 | Aug 19th, 2007 20:29 |
| Notepad Is annoying me | Accurax | Webforumz Cafe | 21 | Mar 12th, 2007 12:18 |
| how to use notepad in flash | reeta.vadgama | Flash & Multimedia Forum | 4 | Jul 31st, 2006 15:21 |
| Fantasy League db design | tycoon | Databases | 1 | May 7th, 2004 18:47 |