Use PHP code coloring in HTML files
In Dreamweaver CS3, what changes do I need to make to get PHP
code coloring show up in .html files?
robot88888888,
First, copy this file from the app config folder:
C:\Program Files\Adobe\Adobe Dreamweaver
CS3\configuration\CodeColoring\PHP.xml
To the user config folder:
C:\Documents and Settings\[username]\Application
Data\Adobe\Dreamweaver
9\Configuration\CodeColoring\
Then open PHP.xml in your favorite editor. You need to add
HTML to all
of the doctype lists Change every occurrence of this:
doctypes="PHP_MySQL"
to be:
doctypes="PHP_MySQL,HTML"
Save and close. If DW is running, close it. Now restart DW.
HTH,
Randy
> In Dreamweaver CS3, what changes do I need to make to
get PHP code coloring show up in .html files?
Similar Messages
-
Make DW use JS code-coloring instead of PHP
I have a Javascript file that has a .php extension because of
some dynamic elements on the page. I also can't wrap the code in
<script> tags because of the way it loads. So basically, I
need to tell DW to use JS code coloring on this page instead of PHP
(right now, everything except the PHP is black text). Any way to
force it to associate the file with a specific file type, instead
of basing it on the file extension?mattloaf1 wrote:
> I have a Javascript file that has a .php extension
because of some dynamic
> elements on the page. I also can't wrap the code in
<script> tags because of
> the way it loads. So basically, I need to tell DW to use
JS code coloring on
> this page instead of PHP (right now, everything except
the PHP is black text).
> Any way to force it to associate the file with a
specific file type, instead of
> basing it on the file extension?
You can "fake" the script tags and fool the code coloring
scheme by adding to the top of the file:
// <script>
and to the bottom of the file:
// </script>
As the // are single line comments in JavaScript when the
file is loaded by the browser it won't see the script tags, but the
code coloring engine seems to be tricked and begins working on the
JavaScript code that is not within the <?php ?> code blocks.
Danilo Celic
|
http://blog.extensioneering.com/
| WebAssist Extensioneer
| Adobe Community Expert -
Dreamweaver CC, how to get php coloring inside html files
Before I could do it by changing the extension.txt file. Now when I try to change the file extension.txt I can't save it but I get an access denied error.
I am running with administrative privileges.
Any ideas?Sorry, I did not explain myself.
Before I used to be able to tweak the configuration file from DW (extensions.txt) and Dreamweaver would color the php code that was contained inside an html files.
I need the code coloring to apply in files with extension html.
I hope I am more clear now. And yes, @Rob Hecker2 you areright, I see now that it was very lousy explained -
Using PHP code to count downloads
Hi,
We are hosting our XML code here: http://krslynx.com/podcast/GTSPodcast.xml for our podcast A Good Talk Spoiled. We have no idea how many downloads we are getting so we had someone design a bit of PHP code (http://krslynx.com/podcast/pod.php) to count the downloads.
In order to make this work, we change our enclosure url from http://krslynx.com/podcast/GTSWeek2.mp3 to http://krslynx.com/podcast/pod.php?podcast=GTSWeek2.mp3. Inserting pod.php?podcast= before the episode file name means that the data for the downloader is captured but the user of the podcast APP gets the error message "Episode Unavailable - This episode is temporary unavailable from "A Good Talk Spoiled Golf Podcast".
I tried to insert this technology for our latest episode but it didn't work so I am now testing this technology on Week 2's episode.
Does the podcast app / iTunes not support PHP technology?
Thanks in advance for your help,
Bobby.I can't test the Podcasts app, but when subscribing in iTunes the Week 2 episodes does not show, which means that iTunes is not seeing the episodes as containing playable media.
This Apple help page:
http://www.apple.com/itunes/podcasts/specs.html#tracking
says
The URL before the GET-style form values (before the first ?) must end in a media file extension (e.g., .mp3). To work around this, the feed provider can alter the URL from this:
http://www.podcaster.com/load.php?f=&Wipeout.php
to this:
http://www.podcaster.com/load.mp3?f=&Wipeout.mp3
Notice how it says load.mp3 instead of load.php. It should be possible to accomplish this via various means, such as web server rewrites. iTunes looks at the extension of the path part of the URL, i.e., the part before the "?".
which explains what the problem is. -
How can i get rid of the print dialog box when using api to print an html file
i am using the systemshell.vi provided by labview the VI is working fine but it will open a dialog box for printer selection and properties. i would like to hide that dialog box and have it print to the default printer with the default properties
ShellExec is part of lvwutil and merely calls a function in Shell32.dll. There is nothing about the function call that controls the display of the printer dialog. I think that what shell32.dll does when it prints (just like right clicking on the file) is print the file according to what is defined about that file type in Windows Folder Options. On my Win2K system, the print application is defined as "C:\Program Files\Microsoft Office\Office\msohtmed.exe" /p %1. If I remove the /p, then Word starts up and in order to print, I get a printer dialog when choosing Print from the File menu. So it seems like the printer dialog is entirely dependant on the application that does the printing. I get no dialog when I use the VI to print a .txt file. I
nstead of using shell32, you might want to try some ActiveX method or property of an application like Internet Explorer that can open and print an html file. -
Yes, that is basically my question. Can I use php coding in Business Catalyst? And does BC us mysql database?
Thank youHi there, Please do a quick forum search before posting. This is asked a lot - You can even see a post in the frequently asked questions panel on the main page of this forum section.
BC is a SAAS - Software as a service and a .Net based SQL system - It does not use PHP or mysql and you can not access the server side code.
So to your question - that is a no I am affraid. -
How to save html code into a html file in webdynpro
Hello Everyone!
I want create a html page in WebDynpro,
example :
String mystr = "<html><head><titile>This is a text</title></head><body> this is body</body></html>";
I want create a html page and save this to the *.html page , how can i to do ?
thanks!HI! sowmya&Satya
1st:
I use method (File>new>file.) create a html under my project . but when I swith web dynpro perspective, can't found the html file under my current project ?
2nd:
public void onActionInputToHtml(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionInputToHtml(ServerEvent)
String mystr = "<html>.............</html>"
//@@end
how to input "mystr" to the html page which I have create in 1st step ?
3rd :
how to display the html page In IE when run my project program ?
Thanks! -
Including a servlet code within an html file
I have an html file which should include the contents of a servlet. The html and
servlet are reside on different webservers, otherwise I would have used JSP.
I cant use JSP here. hope u will provide me a solution as soon as possibleThe best way of doing this would be to make the html page a jsp and use the jstl c:import tage.
If it must be an html you could use the IFrame tabe:
<html>
<head>
</head>
<body>
<IFRAME SRC="http://www.yahoo.com" WIDTH="800" HEIGHT="600" scrolling="auto" frameborder="0"></IFRAME>
</body>
</html> -
Learn how easy it is to create PHP code by using some of the new code-hinting features in Dreamweaver CS5
http://adobe.ly/wjmnc1I've been using Dreamweaver to create php based websites with the popular Zend Framework 1. I'm now trying to integrate Dreamweaver with ZF2 and the Dreamweaver is giving me errors for lies such as:
$loader = new Zend\Loader\StandardAutoloader(array('autoregister_zf' => true));
and
use Zend\Session\Container;
even though the lines are correct. Do I have to do anything special in Dreamweaver so that it recognizes these statements as not being errors? -
DW 11.0 Build 4993 - why can't I use Design view with an HTML file?
Subject line basically says it all: I started a new HTML file, but I can't switch to design view. Anyone have any idea why? Thanks!
Which operating system? Mac or PC?
Can you post a set of reproducible steps so we can follow what you're doing? -
How i can use ExportPDF in java code to get html files as PDF?
I need to use ExportPDF in java code to export my html to PDF and save that in my local system.
Yes, it's not a service for automating. Automating Acrobat is a possibility (though awkward), or there are server products.
-
How to upload an image in a directory using PHP code generated by Dreamweaver?
I have created a dynamic website with Dreamweaver and PHP, i have also created a insertform page using dreamweaver's 'Record Insertion Form Wizard' i have a field named prod_img in my MySQL database and on my form but this is a text field and i have to enter the path of the image directory to display it but this needs to have the image in the directory, i want to add a browse file field so that the image uploads to the directory by PHP.
My code is as follows:
<?php require_once('../Connections/dwtltd.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
return $theValue;
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO special_offers (spec_img, spec_head, spec_desc, spec_call, spec_price, spec_rtn) VALUES (%s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['spec_img'], "text"),
GetSQLValueString($_POST['spec_head'], "text"),
GetSQLValueString($_POST['spec_desc'], "text"),
GetSQLValueString($_POST['spec_call'], "text"),
GetSQLValueString($_POST['spec_price'], "text"),
GetSQLValueString($_POST['spec_rtn'], "text"));
mysql_select_db($database_dwtltd, $dwtltd);
$Result1 = mysql_query($insertSQL, $dwtltd) or die(mysql_error());
$insertGoTo = "../specialoffers.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
header(sprintf("Location: %s", $insertGoTo));
mysql_select_db($database_dwtltd, $dwtltd);
$query_insertRS = "SELECT * FROM special_offers ORDER BY spec_id ASC";
$insertRS = mysql_query($query_insertRS, $dwtltd) or die(mysql_error());
$row_insertRS = mysql_fetch_assoc($insertRS);
$totalRows_insertRS = mysql_num_rows($insertRS);
?>
<form action="<?php echo $editFormAction; ?>" method="post" name="form1" id="form1">
<table align="center" cellpadding="5">
<tr valign="baseline">
<td align="right" nowrap="nowrap">Add Image:</td>
<td><span id="sprytextfield1">
<input type="text" name="spec_img" value="" size="32" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Offer Heading:</td>
<td><input type="text" name="spec_head" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Offer Description:</td>
<td><input type="text" name="spec_desc" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Phone:</td>
<td><input type="text" name="spec_call" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">Price:</td>
<td><input type="text" name="spec_price" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right">RTN:</td>
<td><input type="text" name="spec_rtn" value="" size="32" /></td>
</tr>
<tr valign="baseline">
<td nowrap="nowrap" align="right"> </td>
<td><input type="submit" value="Insert record" /></td>
</tr>
</table>
<input type="hidden" name="MM_insert" value="form1" />
</form>
Help greatly appreciated.
I have googled, yahooed, binged etc etc and tried many tutorials but nothing goes in my favor please do not suggest to search on search engines or websites.Years and months later, apparently Dreamweaver CC 2014 has a "File" Form object that has a text box and Browse button. Now I'm looking for the part that does the actual upload (which is why I wound up here). I'm sure by now you have found a way to resolve your issue, but there it is....
-
Automator/AppleScript for adding code to an html file
Hi all,
I have a bunch of files (60+) that have been converted from xml to html so that they can be read by the calibre eBook software. Because they were originally .xml files, they do not have opening or closing htiml or body tags. They won't open in Word, only textedit. I am looking for a way to insert the <html> <body> and </body> </html> codes into each file as quickly/painlessly as possible, ideally as a workflow, or series of workflows, that I could use later with other files of this type.
Can anyone advise me on how to do this? I'm new at coding/applescript/automator, but I'm generally a quick study.This is an applescript version which should be a little more comprehensible.
-- select files - might be easier ways to do this depending on your setup
set fileList to choose file with prompt "Choose files to wrap in HTML tags" with multiple selections allowed
-- loop through files
repeat with thisFile in fileList
-- open the file for writing
set fp to open for access thisFile with write permission
-- grab contents of file and wrap it in tags
set unmodifiedText to read fp
set modifiedText to "<html>" & return & "<body>" & return & unmodifiedText & return & "</body>" & return & "</html>"
-- write the new text out to the file and close it.
set eof of fp to 0
write modifiedText to fp
close access fp
end repeat -
Template Updates wipe out PHP code at top of file
Hey everybody,
I'm helping my wife with a web site that needed PHP, and
since I know Dreamweaver I figured it couldn't be that hard to do.
And it's not - between the DW application development features and
a little hacking, it's been going fgreat.
But the site is based off of a .dwt template, and every time
she makes a change to the design it wipes out all the connection
code that dreamweaver writes at the top of the page... arrrgh! I
tried looking it up on the site, and tried adding a
codeOutsideHTMLIsLocked="false" tag (I also tried "true") and that
did not help.
I never had this problem with Cold Fusion before. There's
something in the livedocs about "dynamic templates" but that seems
to imply I'd have to make my own XML definition file for php
documents, which is pretty stupid, and makes me think it's not
necessary.
Anyone ever come up against this before?There's more to it than that, right? Let's see it all,
please. The best
way would be to upload it and post a link....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"illovich" <[email protected]> wrote in
message
news:g1frjf$mi6$[email protected]..
> Here is is, thanks for taking a look!
>
>
>
> <?php require_once('Connections/serv.php'); ?>
> <?php
> if (!function_exists("GetSQLValueString")) {
> function GetSQLValueString($theValue, $theType,
$theDefinedValue = "",
> $theNotDefinedValue = "")
> {
> $theValue = get_magic_quotes_gpc() ?
stripslashes($theValue) :
> $theValue;
>
> $theValue = function_exists("mysql_real_escape_string")
> mysql_real_escape_string($theValue) :
mysql_escape_string($theValue);
>
> switch ($theType) {
> case "text":
> $theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
> break;
> case "long":
> case "int":
> $theValue = ($theValue != "") ? intval($theValue) :
"NULL";
> break;
> case "double":
> $theValue = ($theValue != "") ? "'" .
doubleval($theValue) . "'" :
> "NULL";
> break;
> case "date":
> $theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
> break;
> case "defined":
> $theValue = ($theValue != "") ? $theDefinedValue :
> $theNotDefinedValue;
> break;
> }
> return $theValue;
> }
> }
>
> mysql_select_db($database_serv, $serv);
> $query_posters = "SELECT * FROM isazPosters ORDER BY
posterID ASC";
> $posters = mysql_query($query_posters, $serv) or
die(mysql_error());
> $row_posters = mysql_fetch_assoc($posters);
> $totalRows_posters = mysql_num_rows($posters);
> ?>
> -
How to use PHP code in Dreamwave CS6
Help me, I don't know it
site contact: tuhoctienganh.infoGet one of the following testing servers for your OS and follow the installation instructions.
WAMP for Windows
http://www.wampserver.com/en/
XAMPP for Windows
http://www.apachefriends.org/en/xampp-windows.html
XAMPP for Mac
http://www.apachefriends.org/en/xampp-macosx.html
MAMP for Mac
http://www.mamp.info/en/downloads/index.html
Setting up a PHP environment in Dreamweaver
http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
Nancy O.
Maybe you are looking for
-
How do I get my video playlists back on iPod Touch 4G after (epic fail) iOS6 update
As other users have identified, playlists present on iTunes on laptop but not on iPod touch 4G after iOS6 update except when select edit. Can I get them back? Not wasting time messing around. Either this is easily sortable or I get a new player from
-
Does Winclone still work to restore a Boot Camp partition?
I have a 50GB Boot Camp partition, NTFS file system, with Windows XP. My computer is a Mac Pro running OS X 10.6.5. I have been using Winclone to clone the Boot Camp partition as a backup. I know that Winclone is no longer supported, and have heard t
-
Iphone 6 + and 8.1.1
I had my 6+ for about 2 weeks now. Battery Last 2 days ! super !!! yesterday when i installed 8.1.1 from 8.1 i can watch it go from 100% within minutes 98% and so on.... never did that on 8.1.... Bug? any others having the same issue ? today I went b
-
Deployment of web services in 11.1.1.3.0
Hi , I created the pl/sql web services successfully and when I am trying to deploy those in weblogic server its not deploying saying that deployment failed Fallowed by java errors - Please Advice me the Steps to deploy the web services. Thanks
-
This is my Server Program import javax.swing.*; import java.io.*; import java.net.*; import java.util.*; import java.awt.*; import java.awt.event.*; class Validation Object object; public static Vector v1=new Vector(1,1); Vector vctUse