Support for language highlights embedded in PHP code

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
emacs-lisp, html, php, sql

Research direction

No files or tests are named. Start by reviewing poly-php's existing handling of PHP string literals and heredocs, then consult the referenced php-mode issue. Done means the SQL and HTML examples in the issue receive embedded syntax highlighting without breaking PHP highlighting.

Written by the indexing model from the issue text.

Description

Query languages like SQL and, rarely, HTML tags can be written in string literals and heredoc, so it's useful to have syntax highlighting

<?php

$sql = 'SELECT * FROM tbl';

if (true) {
    $sql = <<<'SQL'
    SELECT * FROM tbl
    SQL;
}

refs https://github.com/emacs-php/php-mode/issues/695

Dominant language
Emacs Lisp
Stars
4
Forks
1
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More DevTools issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.