Opened 8 years ago

Last modified 4 years ago

#263 assigned Feature Requests (None)

Seperate HTML und PHP Syntax Hightlighting

Reported by: floele Owned by: nobody
Priority: 2 Milestone: 1.5.0
Component: PHP Editor Version: 1.2.x
Keywords: syntax,highlight Cc:

Description (last modified by ed_mann)

I suggest to add an option so that you can switch
between HTML and PHP Syntax Hightlighting when editing
a file additional to the mixed/combined highlighting.
In example when using PHP (only) hightlighting, all
HTML code should get the same very bright color so that
it is almost invisble. That makes it easier to
distinguish between PHP and HTML code, especially if
you use other PHP highlighting colors than the standard
ones.

Useful for code link this one:
<input type="text" name="mytext" value="<?php echo
$some_string; ?>" />

Change History (6)

comment:1 Changed 8 years ago by nobody

Logged In: NO 

Mixing code and display text is a bad idea anyway... check out Smarty

comment:2 Changed 8 years ago by gamebit

Logged In: YES 
user_id=1224839

Well, I think its excellent idea, I like that feature in edit+

comment:3 Changed 7 years ago by bananeweizen

Logged In: YES 
user_id=440739

see also duplicate call 1281214

comment:4 Changed 7 years ago by beryllium

Logged In: YES 
user_id=395502

I would like this feature as well, it makes it much easier
to read items.

HomeSite does this; HTML code has a white background and PHP
code has a grey background.

So in this code:
<input type="text" name="mytext" value="<?php echo
$some_string; ?>" />

Everything inside of the <? ?> has a grey background, and
the HTML portion has a white background. Very useful when
dealing with codebases that do a lot of context switching.

comment:5 Changed 5 years ago by ed_mann

  • billable set to 0
  • Component changed from editor to PHP Editor
  • Description modified (diff)
  • Keywords syntax,highlight added
  • Milestone set to 1.5.x
  • os_platform set to Linux
  • Version changed from None to 1.2.0-nightly

comment:6 Changed 4 years ago by incastrix

  • os_platform changed from Linux to Any
  • Priority changed from 5 to 2
  • Version changed from 1.2.0-nightly to 1.2.x
Note: See TracTickets for help on using tickets.