官术网_书友最值得收藏!

Using Laravel with Sublime Text 2

One of the most popular text editors used for coding is Sublime Text. Sublime has many features that make coding fun, and with plugins, we can add in Laravel-specific features to help with our app.

Getting ready

Sublime Text 2 is a popular code editor that is very extensible and makes writing code effortless. An evaluation version can be downloaded from http://www.sublimetext.com/2.

We also need to have the Package Control package installed and enabled in Sublime, and that can be found at http://wbond.net/sublime_packages/package_control/installation.

How to do it...

For this recipe, follow these steps:

  1. In your menu bar, go to Preferences then Package Control:
  2. Choose Install Package:
  3. Search for laravel to see the listing. Choose Laravel 4 Snippets and let it install. After it's complete, choose Laravel-Blade and install it.

How it works...

The Laravel snippets in Sublime Text 2 greatly simplify writing common code, and it includes pretty much everything we'll need for application development. For example, when creating a route, simply start typing Route and a list will pop up allowing us to choose which route we want, which then automatically completes the rest of the code we need.

There's more...

Installing the Laravel-Blade package is helpful if we use the Blade template system that comes with Laravel. It recognizes Blade code in the files and will automatically highlight the syntax.

主站蜘蛛池模板: 桃江县| 宣汉县| 宕昌县| 惠水县| 涟水县| 内江市| 邯郸市| 民权县| 白河县| 金山区| 桃源县| 华阴市| 延寿县| 盐边县| 那坡县| 贵德县| 墨江| 东阳市| 黑龙江省| 安溪县| 绩溪县| 同江市| 丰镇市| 邢台县| 乐至县| 小金县| 昌邑市| 仁化县| 绥宁县| 永川市| 上犹县| 通化市| 吴忠市| 海门市| 遂宁市| 香河县| 六枝特区| 图们市| 台南县| 越西县| 兰坪|