I've been playing around with the Word Wrap/Tab Settings and Reindent feature as well as the Artistic Style to try and get my php files formatted correctly, but I can't seem to find the magic setting to make it work the way I want. Here is a small sample code formatted using the Reindent feature (I set my tabs at 3):
The HTML pieces are formatted okay, but I want the lines within the <?php and ?> section to be indented one level so that it's not in the same column as the <?php and ?> markers. Like this:
Is there a way to customize either the Reindent Selection feature or create your own Artistic Style?
Thanks,
Richard
Code: Select all
<html>
<head>
<title>Some Title</title>
</head>
<body>
<h1>Heading Here.</h1>
<?php
echo "This line was created via php code.<br/>";
echo "So was this line.<br/>";
?>
But this line wasn't.
</body>
</html>
Code: Select all
<?php
echo "This line was created via php code.<br/>";
echo "So was this line.<br/>";
?>
Thanks,
Richard