Jump to content

Line of code breaks Dreamweaver colour coding


Recommended Posts

Newbie at this. In Dreamweaver I've got a bit of code (below) and under it the colour coding stops working, I know it's to do with the line:  $rug_obj->applyPromotion(); but I don't know if there's a way to fix this - the line of code is vital to the page so I can't just remove it.

 

<?php 
// check for promos    
$rug_obj = new Rug($rug['id']);
$rug_obj->applyPromotion();

Link to comment
Share on other sites

Ok I get that and was expecting it, but is there any way around it (bar "don't use Dreamweaver").

 

It's the -> that's causing the colour rendering to break. It's not effecting the code but it would make it a lot more readable if fixed.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.