Jump to content

Looks messy...


Aureole

Recommended Posts

I need a variable to contain a bunch of HTML... something like this...

 

<?php
$html = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n\n<html xmlns="http://www.w3.org/1999/xhtml">\n\n<head>\n\n<title>'.SITE_TITLE.' - '.$html->output->page_title.'</title>\n\n<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />\n\n<link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main.css" />\n\n<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>\<script type="text/javascript" src="http://www.starwarsrevolution.net/js/contextmenu.js"></script>\n<script type="text/javascript" src="http://www.starwarsrevolution.net/js/matchcolumns.js"></script>\n\n</head>';
?>

 

But that looks messy as hell.. isn't there a way where I can type it like...

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title><?php echo(''.PAGE_TITLE.' - '.$html->output->page_title.''); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link type="text/css" rel="stylesheet" href="http://www.starwarsrevolution.net/main.css" />

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.pack.js"></script>
<script type="text/javascript" src="http://www.starwarsrevolution.net/js/contextmenu.js"></script>
<script type="text/javascript" src="http://www.starwarsrevolution.net/js/matchcolumns.js"></script>

</head>

<body>

 

I'm sure there's a way to do it like

 

[EOF]>>

 

HTML here...

 

<<[EOF]

 

...or something like that, I saw it in one of IPB's (Invision Power Board's) files... but I can't find it again.

Link to comment
https://forums.phpfreaks.com/topic/72833-looks-messy/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.