After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 561750 - Ability to access contextual information about language type from GtkSourceView (e.g. HTML lines in .php files)
Ability to access contextual information about language type from GtkSourceVi...
Status: RESOLVED OBSOLETE
Product: gtksourceview
Classification: Platform
Component: Context engine
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2008-11-21 01:31 UTC by Jean-Philippe Fleury
Modified: 2021-07-05 11:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-Philippe Fleury 2008-11-21 01:31:50 UTC
Please describe the problem:
The "Code Comment" plugin doesn't take into account HTML lines in .php files.

Steps to reproduce:
1. Open gedit.
2. Create a .php file and save it.
3. Put an HTML line in the file, for example:

<p>Test.</p>

4. Comment this HTML line with Ctrl+M

Actual results:
The line is commented like if it was PHP code:

#<p>Test.</p>

Expected results:
The plugin should analyse the context (PHP line or HTML line) and correctly comment. For the previous example, we should obtain with Ctrl+M:

<!-- <p>Test.</p> -->

Does this happen every time?
Yes.

Other information:
Comment 1 jessevdk@gmail.com 2008-11-21 07:27:50 UTC
The problem is that such contextual information can at the moment not be accessed (it is not even stored afaik) from GtkSourceView. This feature is very useful for a lot of plugins (like snippets, hopefully external tools at some point) which rely on context information.
Comment 2 Jean-Philippe Fleury 2008-12-09 14:40:36 UTC
(In reply to comment #1)
> The problem is that such contextual information can at the moment not be
> accessed (it is not even stored afaik) from GtkSourceView. This feature is very
> useful for a lot of plugins (like snippets, hopefully external tools at some
> point) which rely on context information.

Should I open a feature request for GtkSourceView?
Comment 3 GNOME Infrastructure Team 2021-07-05 11:00:48 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/

Thank you for your understanding and your help.