473,387 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Formating external text

Dan
Hi all,

I have a quick question about the formatting of external text files.

I am trying to make a webpage for a local church that will display what
is on in the coming weeks. I have done this using an external text file
so that the future users will never have to modifiy the page itself.

If left as plain text, it shows on the page in default format. I know I
can format the text within the text file using standard HTML, but is
there a way of formatting regular text outside of the text file? Kind
of post processing it? The file format will always be something like

Monday 19th
09:00 Add event here
12:00 Add event here

Tuesday 20th
09:00 Add event here
10:00 Add event here
13:00 Add event here

etc...

The number of events on each day is variable, and not every day may
feature (could be monday events then thursday events). I would like to
make the Day and date bold, the times italic...well you get the idea!

I have an idea that I will need to impose a structure on the file,
however I am unsure of how to do this. If this is the case, then I
would appreciate it if someone could post a link to a decent tutorial
or guide so I can learn it!

Thank you in advance for any help you can provide me with

Kind regards

Dan

Jun 19 '06 #1
2 1288
Dan wrote:
Hi all,

I have a quick question about the formatting of external text files.

I am trying to make a webpage for a local church that will display what
is on in the coming weeks. I have done this using an external text file
so that the future users will never have to modifiy the page itself.

If left as plain text, it shows on the page in default format. I know I
can format the text within the text file using standard HTML, but is
there a way of formatting regular text outside of the text file? Kind
of post processing it? The file format will always be something like

Monday 19th
09:00 Add event here
12:00 Add event here

Tuesday 20th
09:00 Add event here
10:00 Add event here
13:00 Add event here

etc...

The number of events on each day is variable, and not every day may
feature (could be monday events then thursday events). I would like to
make the Day and date bold, the times italic...well you get the idea!

I have an idea that I will need to impose a structure on the file,
however I am unsure of how to do this. If this is the case, then I
would appreciate it if someone could post a link to a decent tutorial
or guide so I can learn it!

Thank you in advance for any help you can provide me with

Kind regards

Dan


Dan,

I'd just put the events in a database and build the pages dynamically.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 19 '06 #2
The simplest way to impose a structure is to create a form. That way,
the different parts of the entry - date, day, time, subject, any
additional info - can each be clearly identified, and errors such as
entering non-existing dates can be avoided.

Whether that information is then added to a database or simply appended
to a text file is up to you.

Dan wrote:
Hi all,

I have a quick question about the formatting of external text files.

I am trying to make a webpage for a local church that will display what
is on in the coming weeks. I have done this using an external text file
so that the future users will never have to modifiy the page itself.

If left as plain text, it shows on the page in default format. I know I
can format the text within the text file using standard HTML, but is
there a way of formatting regular text outside of the text file? Kind
of post processing it? The file format will always be something like

Monday 19th
09:00 Add event here
12:00 Add event here

Tuesday 20th
09:00 Add event here
10:00 Add event here
13:00 Add event here

etc...

The number of events on each day is variable, and not every day may
feature (could be monday events then thursday events). I would like to
make the Day and date bold, the times italic...well you get the idea!

I have an idea that I will need to impose a structure on the file,
however I am unsure of how to do this. If this is the case, then I
would appreciate it if someone could post a link to a decent tutorial
or guide so I can learn it!

Thank you in advance for any help you can provide me with

Kind regards

Dan


Jun 19 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Polar | last post by:
I have a database that stories entries of short stories for a writers website. I can easily input the data into MYSQL but my trouble lies in retrieving the data. the story in just cut and...
1
by: gevayl | last post by:
Hi, Is it possible to do memo text formating in ms access 2000? I mean like underlining a portion of text in a memo field or a text field? Thank you.
6
by: Scott Natwick | last post by:
I'm trying to send an email from a Form. Here's what I have so far: MailMessage mail = new MailMessage(); mail.To = "me@mycompany.com"; mail.From = "you@yourcompany.com"; mail.Subject = "this...
4
by: djc | last post by:
Is there a property or method of the textbox web server control that I can use to format the text in it a certian way. For example I am displaying a date value from a database in a text box. It...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.