Skip to content

docs: explain difference between php and php-template in header comments#4402

Open
xxiaoxiong wants to merge 1 commit into
highlightjs:mainfrom
xxiaoxiong:docs/php-php-template-description
Open

docs: explain difference between php and php-template in header comments#4402
xxiaoxiong wants to merge 1 commit into
highlightjs:mainfrom
xxiaoxiong:docs/php-php-template-description

Conversation

@xxiaoxiong
Copy link
Copy Markdown

Description

Adds a Description field to the header comment in both php.js and php-template.js so users browsing the source or the website can easily tell which language to choose for their use case.

  • php: Use this for any PHP code, with or without the opening <?php tag.
  • php-template: Use this for PHP code embedded in HTML/XML templates. Requires PHP opening/closing tags (<?php ... ?>).

Closes #3765

Adds a Description field to the header comment in both php.js and
php-template.js so users can easily tell which language to choose.

Closes highlightjs#3765
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explain the difference between php and php-template in their comments

1 participant