Answer the question
In order to leave comments, you need to log in
CodeMirror: Is it possible to set up syntax highlighting without using PHP tags?
Hello! Question for those who had experience with the CodeMirror (JavaScript) plugin. I need to make a PHP code editor with syntax highlighting, respectively, but there was such a problem in convenience. To make the highlighting work, you need to add a PHP tag before the code, as in this example:
<?php
echo "Hello, World!";
echo "Hello, World!";
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question