Giter Club home page Giter Club logo

php-attributes-syntax's Introduction

PHP Attributes Syntax for Vim

This syntax file adds syntax/highlighting groups for PHP 8 attributes. I wrote this as an addition to the official Vim php syntax which lacks attributes.

Example

Code Demo with Attributes

Installation

Either copy the file keeping the directory structure to your .vim home directory or use a plugin manager.

Plug:

Plug 'dr0bz/php-attributes-syntax'

Usage

This syntax will introduce few new groups and link them to standard vim sytnax groups:

New Group Linked To
phpAttributeKeyword Keyword
phpAttributeClassKeyword Keyword
phpAttributeBoolean Boolean
phpAttributeNumber Number
phpAttributeConstant Constan
phpAttributeString String
phpAttributeNamedArgument Normal
phpAttributeFQDN Normal
phpAttributeInitClassName Normal
phpAttributeClassName Normal
phpAttributeBlock Comment

You probably want colors that are less intrusive. Since attributes a written in the comment place. You can just take your regular colors and make them darker. For ex. here is my color of Keyword:

#cc7833 #cc7833

Find your's:

hi Keyword

Then use your color picker to make it a bit darker:

#995924 #995924

hi phpAttributeKeyword guifg=#995924

Do this to all attribute groups mentioned above.




Good luck and happy coding in vim:)

php-attributes-syntax's People

Contributors

dr0bz avatar

Stargazers

Xavier Sanna avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.