[Geany-Users] Users Digest, Vol 148, Issue 3

Muddleglum Smith muddleglum1 at xxxxx
Sat Feb 3 02:30:03 UTC 2018


@Lex Trotman
>Geany only supports files as one language, it can't handle mixed
>languages like PHP in HTML so you can only have one comment form
>per filetype.
I'm not sure about this. If I have a different language embedded, I
just change the language in the menu (Document | Set Filetype) and the
ctrl-E works just fine. Am I missing something? (note that I don't use
php, so I haven't tested that)
I agree that a multiline comment in addition to line comments would be
kind of useful but that's a different can of worms. I'll probably
stick to snippets to keep my worms under control.



On Fri, Feb 2, 2018 at 10:58 AM,  <users-request at lists.geany.org> wrote:
> Send Users mailing list submissions to
>         users at lists.geany.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.geany.org/cgi-bin/mailman/listinfo/users
> or, via email, send a message with subject or body 'help' to
>         users-request at lists.geany.org
>
> You can reach the person managing the list at
>         users-owner at lists.geany.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Users digest..."
>
>
> Today's Topics:
>
>    1. Re: <DKIM> Re: How to place comment tags /* ... */ around
>       selection ? (Lex Trotman)
>    2. Re: <DKIM> Re: <DKIM> Re: How to place comment tags /* ... */
>       around selection ? (Jérôme Andanson)
>    3. Re: <DKIM> Re: How to place comment tags /* ... */ around
>       selection ? (j.dunn at piments.com)
>    4. Re: <DKIM> Re: <DKIM> Re: How to place comment tags /* ... */
>       around selection ? (Lex Trotman)
>    5. Re: <DKIM> Re: How to place comment tags /* ... */ around
>       selection ? (Lex Trotman)
>    6. Re: [RFC]: Does anyone use the Devhelp plugin? (Frank Lanitz)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 2 Feb 2018 19:15:47 +1000
> From: Lex Trotman <elextr at gmail.com>
> To: Geany general discussion list <users at lists.geany.org>
> Subject: Re: [Geany-Users] <DKIM> Re: How to place comment tags /* ...
>         */ around selection ?
> Message-ID:
>         <CAKhWKDPx54CcrTyJwaGb1nzZUvXtf+8SUP8HKp3DmkNMZn=7sw at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> On 2 February 2018 at 18:43, Jérôme Andanson via Users
> <users at lists.geany.org> wrote:
>> Le 31/01/2018 à 13:10, Vladimir Avshtolis via Users a écrit :
>>
>> Lex,
>> Often I need to place /*..*/ or html <!--- ... --->  around selection.
>> Addons plugin allow to define one letter only in beginning and in the end
>> and finally doesn't work - just insert empty space before and after
>> selection.
>> May be I do something wrong?
>> Regards
>>
>> BR
>> Vladimir Avshtolis
>>
>> Hello,
>>
>> In a html file, use of [CTRL]+[e], nicely add/remove <!-- --> around
>> selection ! as you want !
>
> I think that must only work for languages that do not have a line
> oriented comment configured.
>
>> But for php file only single line comment works '//'
>> I don't understand how it works, maybe cause of mixed language use
>> html/js/php, they share some functionnality.
>>
>> In documentation [1] it is written you can specify comment_open and
>> comment_close in filetypes.php, so i try as follow :
>> comment_open=/*
>> comment_close=*/
>>
>> Don't work :(, it is still single line comment '//'
>> So, I add a line with blank value for comment_single, as follow :
>> comment_single=
>> After reloading configuration, commenting a block, in a php file, will
>> append html/xml style comment (<!-- -->) and removing it with keybinding not
>> working, changing comment_open and comment_close in filetypes.html with :
>> comment_open=/*
>> comment_close=*/
>> Works for php file, but the problem is now with html file comment, it will
>> use /* and */ and can't remove it with keybinding :(
>>
>> So, is it possible to use comment bloc with php and html filetype in the
>> same time ?
>>
>
> Geany only supports files as one language, it can't handle mixed
> languages like PHP in HTML so you can only have one comment form per
> filetype.
>
> In fact the commenting code does not understand the language at all,
> it just applies the character sequences configured in the filetype as
> text, single line comments for preference (after all the menu items
> are "comment line") or open/close comments as a fallback.
>
>> Jérôme
>>
>>
>> [1] https://www.geany.org/manual/dev/#filetype-configuration
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.geany.org
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 2 Feb 2018 10:34:58 +0100
> From: Jérôme Andanson <j.andanson at laposte.net>
> To: Geany general discussion list <users at lists.geany.org>
> Subject: Re: [Geany-Users] <DKIM> Re: <DKIM> Re: How to place comment
>         tags /* ... */ around selection ?
> Message-ID: <7aacf8c7-c2a1-a061-991d-1c8ef4f96f80 at laposte.net>
> Content-Type: text/plain; charset=utf-8
>
> Le 02/02/2018 à 10:15, Lex Trotman a écrit :
>> On 2 February 2018 at 18:43, Jérôme Andanson via Users
>> <users at lists.geany.org> wrote:
>>> Le 31/01/2018 à 13:10, Vladimir Avshtolis via Users a écrit :
>>>
>>> Lex,
>>> Often I need to place /*..*/ or html <!--- ... --->  around selection.
>>> Addons plugin allow to define one letter only in beginning and in the end
>>> and finally doesn't work - just insert empty space before and after
>>> selection.
>>> May be I do something wrong?
>>> Regards
>>>
>>> BR
>>> Vladimir Avshtolis
>>>
>>> Hello,
>>>
>>> In a html file, use of [CTRL]+[e], nicely add/remove <!-- --> around
>>> selection ! as you want !
>> I think that must only work for languages that do not have a line
>> oriented comment configured.
>>
>>> But for php file only single line comment works '//'
>>> I don't understand how it works, maybe cause of mixed language use
>>> html/js/php, they share some functionnality.
>>>
>>> In documentation [1] it is written you can specify comment_open and
>>> comment_close in filetypes.php, so i try as follow :
>>> comment_open=/*
>>> comment_close=*/
>>>
>>> Don't work :(, it is still single line comment '//'
>>> So, I add a line with blank value for comment_single, as follow :
>>> comment_single=
>>> After reloading configuration, commenting a block, in a php file, will
>>> append html/xml style comment (<!-- -->) and removing it with keybinding not
>>> working, changing comment_open and comment_close in filetypes.html with :
>>> comment_open=/*
>>> comment_close=*/
>>> Works for php file, but the problem is now with html file comment, it will
>>> use /* and */ and can't remove it with keybinding :(
>>>
>>> So, is it possible to use comment bloc with php and html filetype in the
>>> same time ?
>>>
>> Geany only supports files as one language, it can't handle mixed
>> languages like PHP in HTML so you can only have one comment form per
>> filetype.
>>
>> In fact the commenting code does not understand the language at all,
>> it just applies the character sequences configured in the filetype as
>> text, single line comments for preference (after all the menu items
>> are "comment line") or open/close comments as a fallback.
> Sorry for my bad english and maybe misunderstanding, just for be more
> clear, the point here is :
> - in a php file (say test.php)
> - when filetypes.php setting is :
>
> comment_single=
> comment_open=/*
> comment_close=*/
>
>
> It will use the comment_open and comment_close defined in filetypes.html
> I understand mixed language complexity, but in this example it's a php
> file with php code
>>> Jérôme
>>>
>>>
>>> [1] https://www.geany.org/manual/dev/#filetype-configuration
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 2 Feb 2018 10:44:44 +0000
> From: j.dunn at piments.com
> To: users at lists.geany.org
> Subject: Re: [Geany-Users] <DKIM> Re: How to place comment tags /* ...
>         */ around selection ?
> Message-ID: <03fecca5-ce76-f72f-952e-85c2b56d24de at piments.com>
> Content-Type: text/plain; charset=iso-8859-15; format=flowed
>
> On 02/02/18 09:15, Lex Trotman wrote:
>> On 2 February 2018 at 18:43, Jérôme Andanson via Users
>> <users at lists.geany.org> wrote:
>>> Le 31/01/2018 à 13:10, Vladimir Avshtolis via Users a écrit :
>>>
>>> Lex,
>>> Often I need to place /*..*/ or html <!--- ... --->  around selection.
>>> Addons plugin allow to define one letter only in beginning and in the end
>>> and finally doesn't work - just insert empty space before and after
>>> selection.
>>> May be I do something wrong?
>>> Regards
>>>
>>> BR
>>> Vladimir Avshtolis
>>>
>>> Hello,
>>>
>>> In a html file, use of [CTRL]+[e], nicely add/remove <!-- --> around
>>> selection ! as you want !
>>
>> I think that must only work for languages that do not have a line
>> oriented comment configured.
>>
>>> But for php file only single line comment works '//'
>>> I don't understand how it works, maybe cause of mixed language use
>>> html/js/php, they share some functionnality.
>>>
>>> In documentation [1] it is written you can specify comment_open and
>>> comment_close in filetypes.php, so i try as follow :
>>> comment_open=/*
>>> comment_close=*/
>>>
>>> Don't work :(, it is still single line comment '//'
>>> So, I add a line with blank value for comment_single, as follow :
>>> comment_single=
>>> After reloading configuration, commenting a block, in a php file, will
>>> append html/xml style comment (<!-- -->) and removing it with keybinding not
>>> working, changing comment_open and comment_close in filetypes.html with :
>>> comment_open=/*
>>> comment_close=*/
>>> Works for php file, but the problem is now with html file comment, it will
>>> use /* and */ and can't remove it with keybinding :(
>>>
>>> So, is it possible to use comment bloc with php and html filetype in the
>>> same time ?
>>>
>>
>> Geany only supports files as one language, it can't handle mixed
>> languages like PHP in HTML so you can only have one comment form per
>> filetype.
>>
>> In fact the commenting code does not understand the language at all,
>> it just applies the character sequences configured in the filetype as
>> text, single line comments for preference (after all the menu items
>> are "comment line") or open/close comments as a fallback.
>
>
> This seems unnecessarily restrictive.  C has two comment formats :  //
> and /**/  ;  it would be good have a means of using either : presumably
> a secondary hot key.  That could also cover OP's requirement.
>
> Since the mechanism is there to parse the code and insert the edits,
> presumably this could be added fairly easily.
>
>
>>
>>> Jérôme
>>>
>>>
>>> [1] https://www.geany.org/manual/dev/#filetype-configuration
>>>
>>> __
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 2 Feb 2018 20:26:23 +1000
> From: Lex Trotman <elextr at gmail.com>
> To: Geany general discussion list <users at lists.geany.org>
> Subject: Re: [Geany-Users] <DKIM> Re: <DKIM> Re: How to place comment
>         tags /* ... */ around selection ?
> Message-ID:
>         <CAKhWKDMO9B7TgOYNKmBNX_mDgsOHJS=__KWhy-X38efWAex5Zg at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> On 2 February 2018 at 19:34, Jérôme Andanson via Users
> <users at lists.geany.org> wrote:
>> Le 02/02/2018 à 10:15, Lex Trotman a écrit :
>>> On 2 February 2018 at 18:43, Jérôme Andanson via Users
>>> <users at lists.geany.org> wrote:
>>>> Le 31/01/2018 à 13:10, Vladimir Avshtolis via Users a écrit :
>>>>
>>>> Lex,
>>>> Often I need to place /*..*/ or html <!--- ... --->  around selection.
>>>> Addons plugin allow to define one letter only in beginning and in the end
>>>> and finally doesn't work - just insert empty space before and after
>>>> selection.
>>>> May be I do something wrong?
>>>> Regards
>>>>
>>>> BR
>>>> Vladimir Avshtolis
>>>>
>>>> Hello,
>>>>
>>>> In a html file, use of [CTRL]+[e], nicely add/remove <!-- --> around
>>>> selection ! as you want !
>>> I think that must only work for languages that do not have a line
>>> oriented comment configured.
>>>
>>>> But for php file only single line comment works '//'
>>>> I don't understand how it works, maybe cause of mixed language use
>>>> html/js/php, they share some functionnality.
>>>>
>>>> In documentation [1] it is written you can specify comment_open and
>>>> comment_close in filetypes.php, so i try as follow :
>>>> comment_open=/*
>>>> comment_close=*/
>>>>
>>>> Don't work :(, it is still single line comment '//'
>>>> So, I add a line with blank value for comment_single, as follow :
>>>> comment_single=
>>>> After reloading configuration, commenting a block, in a php file, will
>>>> append html/xml style comment (<!-- -->) and removing it with keybinding not
>>>> working, changing comment_open and comment_close in filetypes.html with :
>>>> comment_open=/*
>>>> comment_close=*/
>>>> Works for php file, but the problem is now with html file comment, it will
>>>> use /* and */ and can't remove it with keybinding :(
>>>>
>>>> So, is it possible to use comment bloc with php and html filetype in the
>>>> same time ?
>>>>
>>> Geany only supports files as one language, it can't handle mixed
>>> languages like PHP in HTML so you can only have one comment form per
>>> filetype.
>>>
>>> In fact the commenting code does not understand the language at all,
>>> it just applies the character sequences configured in the filetype as
>>> text, single line comments for preference (after all the menu items
>>> are "comment line") or open/close comments as a fallback.
>> Sorry for my bad english and maybe misunderstanding, just for be more
>> clear, the point here is :
>> - in a php file (say test.php)
>> - when filetypes.php setting is :
>>
>> comment_single=
>> comment_open=/*
>> comment_close=*/
>>
>>
>> It will use the comment_open and comment_close defined in filetypes.html
>> I understand mixed language complexity, but in this example it's a php
>> file with php code
>
> Ahh, the problem is that there is an attempt to handle PHP embedded in
> html by switching the comment type to html any time the style says
> something other than php.  Thats likely very fragile. Issue #1758
> created.
>
> Thanks
> Lex
>
>>>> Jérôme
>>>>
>>>>
>>>> [1] https://www.geany.org/manual/dev/#filetype-configuration
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.geany.org
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 2 Feb 2018 20:29:09 +1000
> From: Lex Trotman <elextr at gmail.com>
> To: Geany general discussion list <users at lists.geany.org>
> Subject: Re: [Geany-Users] <DKIM> Re: How to place comment tags /* ...
>         */ around selection ?
> Message-ID:
>         <CAKhWKDOLmHsYJjBcgHQAztbZ04WSQg0w+58R8tyoHeZ2JEPnzQ at mail.gmail.com>
> Content-Type: text/plain; charset="UTF-8"
>
> [...]
>>
>>
>> This seems unnecessarily restrictive.  C has two comment formats :  // and
>> /**/  ;  it would be good have a means of using either : presumably a
>> secondary hot key.  That could also cover OP's requirement.
>>
>> Since the mechanism is there to parse the code and insert the edits,
>> presumably this could be added fairly easily.
>
> Certainly, but somebody has to do it, pull requests are welcome.
>
>>
>>
>>>
>>>> Jérôme
>>>>
>>>>
>>>> [1] https://www.geany.org/manual/dev/#filetype-configuration
>>>>
>>>> __
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.geany.org
>> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 2 Feb 2018 17:58:04 +0100
> From: Frank Lanitz <frank at frank.uvena.de>
> To: users at lists.geany.org
> Subject: Re: [Geany-Users] [RFC]: Does anyone use the Devhelp plugin?
> Message-ID: <2e008f96-fd32-0b45-d565-6f13778027e7 at frank.uvena.de>
> Content-Type: text/plain; charset="utf-8"
>
> On 01.02.2018 01:40, Matthew Brush wrote:
>> I don't suppose you'd be interested in working on bringing it up to date
>> with Gtk3 and newer libdevhelp, would you?
>
> Well..... I'm afraid .... oh look there!
> I'm currently using still Gtk2-desktop and not sure how much time I can
> invest. Days already packed with a lot of other stuff. So I'd be happy
> to test, but I'm afraid I cannot contribute much code.
>
> Cheers,
> Frank
>
>
>
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: signature.asc
> Type: application/pgp-signature
> Size: 833 bytes
> Desc: OpenPGP digital signature
> URL: <https://lists.geany.org/pipermail/users/attachments/20180202/830d69fc/attachment.sig>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Users mailing list
> Users at lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/users
>
>
> ------------------------------
>
> End of Users Digest, Vol 148, Issue 3
> *************************************


More information about the Users mailing list