Branch: refs/heads/master Home: https://github.com/geany/geany
Commit: 4fb9629f5bdc62b6348ca18ec4e0b3b0f46d7626 https://github.com/geany/geany/commit/4fb9629f5bdc62b6348ca18ec4e0b3b0f46d76... Author: Matthew Brush matt@geany.org Date: 2011-10-12 (Wed, 12 Oct 2011)
Changed paths: M src/editor.c
Log Message: ----------- Detect HTML embedded filetypes from the current line
When using the commenting features (ex. toggle line commentation), detect the the type of comments for the filetype of the line with the caret rather than using the filetype of the current document.
Filetype is determined by the Scintilla state/style at the beginning of the line where the caret is.
This does not fix the existing bug where using the commenting features on lines with things like `<script>` will result in an HTML-style comment to be wrapped around it and also where using the commenting feature on a line with something like `<?php` will not only wrap it in an HTML-style comment but it also won't be able to uncomment the line.
This closes bug ID 2863829[1] and 3127598[2].
[1] https://sourceforge.net/tracker/?func=detail&aid=2863829&group_id=15... [2] https://sourceforge.net/tracker/?func=detail&aid=3127598&group_id=15...