how to indent javascript code correctly in a PHP file?

This page summarizes the projects mentioned and recommended in the original post on /r/vim

CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Vim

    The official Vim repository

    So I did some digging and I found out that vim-polyglot uses a different syntax file than Vim's default for PHP files. When I loaded vim-polyglot's syntax file into my ~/.vim/syntax, I encountered the same issue as you.

  • CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  • vim-polyglot

    A solid language pack for Vim.

    So I did some digging and I found out that vim-polyglot uses a different syntax file than Vim's default for PHP files. When I loaded vim-polyglot's syntax file into my ~/.vim/syntax, I encountered the same issue as you.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Add extra syntax highlighting in NVIM [around 600+ extra language]

    5 projects | /r/neovim | 23 May 2023
  • Which version of Vim do you use?

    5 projects | /r/vim | 16 Mar 2023
  • How can I create a new mode in vim? My goal is to create a way for vscode users or other text editor users to code in vim with their common keyboard shortcuts (e.g. <C-z> undo, <C-c> copy, <c-v> paste, etc. )

    3 projects | /r/neovim | 12 Feb 2023
  • Is there a way to delete lines without putting them in your 'Yank Buffer'?

    5 projects | /r/vim | 16 May 2022
  • fragmentation anxieties

    2 projects | /r/neovim | 19 Jan 2021

Did you konow that Vim Script is
the 31st most popular programming language
based on number of metions?