如何让 Aptana 在 .php 文件中显示 Laravel 语句的颜色(支持 Laravel)? [英] How to make Aptana shows Laravel statements color in .php files(support Laravel)?

查看:26
本文介绍了如何让 Aptana 在 .php 文件中显示 Laravel 语句的颜色(支持 Laravel)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的教程视频中的 Sublime Text 2 很好地显示了 Laravel 语句的颜色,我的 Aptana 中的相同代码只是白色(在 *.php 文件中),它将代码视为纯 HTML 文本,我如何设置 Aptana 以显示带颜色的代码(支持 Laravel)?

Sublime Text 2 in my tutorial video shows Laravel statement color well, the same code in my Aptana is just white(in a *.php file), it treats the code as plain HTML text, how can I set Aptana to show code with color(support Laravel)?

@layout('master')
@section('main')
    @foreach($users as $user)
        {{$user->email}}
    @endforeach
@endsection
@section('nav')
    <li>Details</li>
    @parent
@endsection

以上所有代码都是白色的,除了 <li></li>标签,这不是我想要的方式.

All above codes are white except <li></li> tags, that is not the way I want.

我不知道如何设置 Aptana Studio 3,我需要帮助.

I don't know how to set Aptana Studio 3, I need help.

推荐答案

Sublime Text 2 为 Laravel Blade 模板提供了一个包——这意味着它理解"了代码并且可以正确地给它上色.

Sublime Text 2 provides a package for Laravel Blade templates - this means it 'understands' the code and can colour it correctly.

这个选项在 Aptana 中不存在 - 所以你不能这样做.

This option does not exist in Aptana - so you cannot do it.

这篇关于如何让 Aptana 在 .php 文件中显示 Laravel 语句的颜色(支持 Laravel)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆