How I can turn on highilighting php code in org-mode structure block?

enter image description here

  • I can't find ob-php anywhere. I think it is not supported in babel org-mode. – manandearth Nov 6 at 22:08
  • https://github.com/stardiviner/ob-php I just copy paste ob-php.el into my init.el so I can execute php code. The author of ob-php wrote 'I put it in Org-mode contrib/ now.' but I couldn't find it int org-mode files. Any ideas how highlighting can be done? Maybe from other packages? – slk500 Nov 6 at 22:20
  • Maybe it's been added to a new version of org-mode that isn't bundled with any version of Emacs yet. – DoMiNeLa10 Nov 8 at 20:15

After install php-mode (add to init.el line(use-package php-mode :ensure t)), php code, even in org-mode code block, is highlighted :) It works only on Emacs26 or higher.

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

  • Your answer isn't complete. Can you add the entire solution to your problem? – DoMiNeLa10 Nov 8 at 20:16

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.