Top "Heredoc" questions

A Here-document is a special syntax of writing literal strings in sourcecode, used by different programming languages.

Heredoc in a Makefile?

Is this possible at all and how? Update: I need this because I create a file both from dynamic and …

makefile gitignore heredoc
Interpolate a constant (not variable) into 'heredoc'

Consider: <?php define('my_const', 100); echo <<<MYECHO <p>The value of my_const is {…

php syntax constants heredoc
How do you type a tab in a bash here-document?

The definition of a here-document is here: http://en.wikipedia.org/wiki/Here_document How can you type a tab …

bash tabs heredoc
PHP Heredoc string rules

Can someone here explore the intricacies of using heredoc in PHP using example PHP code snippets, based on what the …

php string heredoc
How to pipe a here-document through a command and capture the result into a variable?

Right now this outputs the value I need on stdout. How can I capture it into a variable so I …

bash shell heredoc
Indenting heredocs with spaces

For personal development and projects I work on, we use four spaces instead of tabs. However, I need to use …

bash indentation spaces heredoc
Heredoc: what does the commonly used 'EOT' actually mean?

PHP's Heredoc examples always seem to use EOT (and sometimes EOD) as the seperating string, while it is actually possible …

php heredoc
Heredoc strings in C#

Is there a heredoc notation for strings in C#, preferably one where I don't have to escape anything (including double …

c# string heredoc
JavaScript Multiline String

The question is: What is the JavaScript method to store a multiline string into a variable like you can in …

javascript string multiline heredoc
Here document as an argument to bash function

Is it possible to pass a here document as a bash function argument, and in the function have the parameter …

bash function shell arguments heredoc