An open API service indexing awesome lists of open source software.

https://github.com/dconco/phpspa-highlighter-plugin

PhpSPA Highlighter Plugin adds syntax highlighting support for embedded HTML, CSS, and JavaScript code within PHP heredoc (<<<HTML) and nowdoc (<<<'HTML') blocks. Automatically highlights code based on the heredoc identifier (HTML, CSS, JS, JAVASCRIPT).
https://github.com/dconco/phpspa-highlighter-plugin

acode acode-plugin extension php phpspa plugin

Last synced: 8 days ago
JSON representation

PhpSPA Highlighter Plugin adds syntax highlighting support for embedded HTML, CSS, and JavaScript code within PHP heredoc (<<<HTML) and nowdoc (<<<'HTML') blocks. Automatically highlights code based on the heredoc identifier (HTML, CSS, JS, JAVASCRIPT).

Awesome Lists containing this project

README

          

# 🎨 PhpSPA Highlighter

![Version](https://img.shields.io/badge/version-1.0.0-blue.svg)
![Acode](https://img.shields.io/badge/Acode-Plugin-orange.svg)
![License](https://img.shields.io/badge/license-MIT-green)

**Syntax highlighting for PhpSPA components in Acode**

## What is this?

PhpSPA uses heredoc syntax to write HTML, CSS, and JavaScript inside PHP components. This plugin makes that code actually look good with proper syntax highlighting.

## Features

- 🎯 Highlights `<<
Hello {$name}!

HTML;
}

public function styles($defaultColor) {
return <<

**Made for the PhpSPA community** ❤️

[Report Bug](https://github.com/dconco/phpspa-highlighter-plugin/issues) • [Request Feature](https://github.com/dconco/phpspa-highlighter-plugin/issues) • [View Docs](QUICK_START.md)