« home   paste   Anonymous | Login | Signup for a new account 08-24-2019 15:48 CEST
* X »
GeSHi - Generic Syntax Highlighter Syntax Coloriser for PHP

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000053 [GeSHi] lang feature N/A 12-24-05 10:15 12-24-05 21:51
Reporter BenBE View Status public  
Assigned To nigel
Priority low Resolution suspended  
Status assigned   Product Version 1.1.1alpha3
Summary 0000053: Top-Level context for PHP only highlighting
Description Because you sometimes require highlighting of PHP sources without extra starters\enders it might be useful to create special language file entry points for this, i.e. language files defaulting to "already being in a PHP context".
Additional Information IIRC this should require only creating 3 little files to support all current PHP language starters.
Attached Files

- Relationships
related to 0000002closed nigel Should be possible to tweak context data dynamically 

- Notes
12-24-05 15:23
edited on: 01-02-06 15:49

This one is an interesting problem. We are assuming that we are already in PHP context, so then <?php and ?> should not apply.

That means that HTML and Javascript in any source highlighted this way will not be highlighted. (Unless there was an OCC that started at ?> or %>, finished at <? and was HTML).

But what to call the dialect(s)? There will be one for php, php4 and php5.

I think this may rely on fixing up the context duplication bug first (bug 0000002). Then that can be used to make this easier.

12-24-05 15:29

What about phpraw, php4raw and php5raw?
12-24-05 21:51

I guess they are OK names, but I can see this biting us in the butt later. Lots of people are going to want PHP highlighting and I'll be dammed if it starts with <?php and damned if it doesn't...

C'est la vive :)

- Issue History
Date Modified Username Field Change
12-24-05 10:15 BenBE New Issue
12-24-05 10:15 BenBE Status new => assigned
12-24-05 10:15 BenBE Assigned To  => nigel
12-24-05 15:23 nigel Note Added: 0000198
12-24-05 15:23 nigel Resolution open => suspended
12-24-05 15:23 nigel Relationship added related to 0000002
12-24-05 15:24 nigel Note Added: 0000199
12-24-05 15:26 BenBE Note Added: 0000201
12-24-05 15:28 BenBE Note View State: private: 201
12-24-05 15:29 BenBE Note Added: 0000202
12-24-05 21:50 nigel Note View State: private: 199
12-24-05 21:51 nigel Note Added: 0000207
01-02-06 15:49 nigel Note Edited: 0000198


Mantis 1.0.0rc2[^]
Copyright © 2000 - 2005 Mantis Group
43 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker