using <<ENDHTML in cgi

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GuybrushThreepwood
    New Member
    • Apr 2007
    • 2

    using <<ENDHTML in cgi

    Whenever I use this tag like so:

    Code:
    print <<ENDHTML;
    
    #insert html code here
    
    ENDHTML
    then everything below the ENDHTML in my text editor is still highlighted like it is within the tags. Can anyone help?
    thanks
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    You can try a different quoting operator:

    print qq|

    #insert html code here

    |;


    But maybe your text editor does not directly support perl syntax and will have no clue how to handle perl syntax properly.

    Comment

    Working...