I just copied a part of a snippet into my project, and it came out as such:
function humanDate($string)
{
// returns string into 01 Dec 2000 for example
return date('m M Y', strtotime($string));
}
- See more at: http://laravelsnippets.com/snippets/helper-for-dates-seo-titles-and-use-of-carbon#sthash.NsXQGTXn.dpuf
problem there, is that line that gets added is more likely to get deleted straight away because it screws with syntax of the code
my initial suggestion would be to wrap it in php comment tags
my other suggestion would be to maybe take a github gist approach to the snippets, where you can add mutliple documents with their syntax highlighting & format, and you can change how to handle the extra line specifically
I just copied a part of a snippet into my project, and it came out as such:
problem there, is that line that gets added is more likely to get deleted straight away because it screws with syntax of the code