htmlhint / htmlhint/vscode-htmlhint

html fragments of .php files support

Open
#311 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
22
Forks
7
Avg merge
3h 33m
Merged PRs (30d)
2

Description

PHP files can be a mix of html and php code. It would be nice if HTMLHint could check the html fragments of PHP files, just ignoring the PHP fragments.

Years ago, a similar issue was created in the microsoft vscode-htmlhint extension: https://github.com/microsoft/vscode-htmlhint/issues/50 The opener of the issue suggested how to address the issue (I do not know if his suggestion is viable).

If this support is possible, it would be nice if htmlhint.options could be different for every file type.

Thanking you in advance

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.

Research direction

Start by reading the linked microsoft/vscode-htmlhint issue 50, then inspect this extension's current file-type handling and htmlhint.options configuration. Determine how mixed PHP and HTML content could be supported and whether options can vary by file type. Done means HTML fragments are checked while PHP fragments are ignored, with any per-file-type option behavior defined and tested.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.