To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Dreamweaver

Dreamweaver In need of help with Dreamweaver?

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-27-2003, 12:39 AM   #1
Damien B
Member
 
Join Date: Jul 2003
Posts: 39
Question Customising Colour Coding in Dreamweaver

How can you make it so that .INI files are colour coded as .PHP files? When ever I open an .INI file, it colour codes it like a text document (ie: everything is black). For me, I find colour coding very handy and it's a shame I can't have it for .INI.

Thank you for any suggestions to solve this problem.
Damien B is offline   Reply With Quote
Old 08-06-2003, 05:38 PM   #2
Boris Senker
Member
 
Boris Senker's Avatar
 
Join Date: Jul 2003
Location: Reporting Live from Marrz
Posts: 59
DW colors the code it interprets, see it's Document Types in Preferences/Color Coding. It reads *.ini files as text files, doesn't interpret them so... I think it's all you get.
__________________
'When the going gets tough, the tough order in'
Boris Senker is offline   Reply With Quote
Old 08-07-2003, 10:17 AM   #3
Damien B
Member
 
Join Date: Jul 2003
Posts: 39
Yeah, I was wondering if I could modify MMDW so that it colour-coded .INI files as PHP.

Thanks anyway!
Damien B is offline   Reply With Quote
Old 08-07-2003, 05:31 PM   #4
mzanimephp
genki ni shitemashitayo
 
mzanimephp's Avatar
 
Join Date: Dec 2002
Location: California
Posts: 274
Actually you can modify Dreamweaver MX to recognise *.ini files and interpret them as PHP, but the problem is that the php.ini file doesn't really have opening and closing <?php ?> blocks in the first place.

DWMX will look for those inorder to begin the PHP code-coloring.
__________________
Scripting PHP, one line at a time | My web site
mzanimephp is offline   Reply With Quote
Old 08-08-2003, 01:46 PM   #5
Damien B
Member
 
Join Date: Jul 2003
Posts: 39
Ok

I'll give that a try. By the way, I meant .INC not .INI, but it doesn't really matter.
Damien B is offline   Reply With Quote
Old 08-08-2003, 02:14 PM   #6
stolzyboy
Super Moderator
 
stolzyboy's Avatar
 
Join Date: Sep 2002
Location: Fargo, North Dakota
Posts: 6,647
are you naming your include files something like

footer.inc

or something like that

if so, i would rethink that, i would do it footer.inc.php

that way if someone goes to your site and go to www.domain.com/footer.inc and you don't have apache interpreting .inc files as php, they will see your php code, and you don't want that

and it will solve your .inc color coding problems
__________________

http://www.codesight.net - Custom Web Development, Web Hosting, Web Consulting
stolzyboy is offline   Reply With Quote
Old 08-09-2003, 02:21 AM   #7
Damien B
Member
 
Join Date: Jul 2003
Posts: 39
Thanks. That's a good idea, but I have no clue about how to use .htaccess. Could somebody point me in the direction of a good content negotiation/.htaccess tutorial? Then I will be able to do this.
Damien B is offline   Reply With Quote
Old 08-09-2003, 10:57 AM   #8
stolzyboy
Super Moderator
 
stolzyboy's Avatar
 
Join Date: Sep 2002
Location: Fargo, North Dakota
Posts: 6,647
there should be a line this this in your httpd.conf

AddType application/x-httpd-php .php .php3

change it to

AddType application/x-httpd-php .php .php3 .inc

then restart apache and it should work
__________________

http://www.codesight.net - Custom Web Development, Web Hosting, Web Consulting
stolzyboy is offline   Reply With Quote
Old 08-09-2003, 11:29 AM   #9
Damien B
Member
 
Join Date: Jul 2003
Posts: 39
I don't have access to that. I'll ask my host to do it for me. By the way, how do you host your own server from scratch?
Damien B is offline   Reply With Quote
Old 08-09-2003, 01:44 PM   #10
stolzyboy
Super Moderator
 
stolzyboy's Avatar
 
Join Date: Sep 2002
Location: Fargo, North Dakota
Posts: 6,647
If you don't have a clue how to start, here is my suggestion:

Keep paying your host to do it, it isn't worth the hassle of power backups, DNS Servers (you need two of them if you want to do it the right way), keeping up on patches for all server, etc...

Not worth it, unless you are gonna think about having a hosting business with people to do the work when something wrecks
__________________

http://www.codesight.net - Custom Web Development, Web Hosting, Web Consulting
stolzyboy is offline   Reply With Quote
Old 08-09-2003, 02:40 PM   #11
Damien B
Member
 
Join Date: Jul 2003
Posts: 39
Okay then. I will keep starting a hosting business in the future as a possibility. Like you said, it looks like fun until something goes wrong!

Thanks alot mate for your input. I started a new post under UNIX/Linux about this whole .htaccess thing.

Last edited by Damien B; 08-09-2003 at 02:47 PM.
Damien B is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:54 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.