Recent Posts

Pages: [1] 2 3 ... 10
1
SlickEdit® / Re: Hitting DEL in doxygen C comment block adds unnecessary */
« Last post by Dennis on May 31, 2023, 03:26:34 pm »
This will be fixed in the next rev of the cumulative hot fix.
2
SlickEdit® / Re: Hitting DEL in doxygen C comment block adds unnecessary */
« Last post by Dennis on May 31, 2023, 02:28:58 pm »
Reproduced.  The doc comment editing seems to expect the closing */ to be on its own line at the end (the stars align).  I'll see if adjustments can be made.

Is this your usual comment style?  I've seen inline comments /**< comment text */ where the close is on the same line, but this style is not typical for multi-line comments.  Does Doxygen handle them correctly?
3
SlickEdit® / Hitting DEL in doxygen C comment block adds unnecessary */
« Last post by os2bird on May 31, 2023, 10:04:42 am »
This is a really old problem, but when editing a multiline C-style doxygen comment block (i.e.  /** comment */) and hit delete, sometimes an extra close comment sequence (*/) is appended to the block.

To reproduce:
1. vs +new -sc /tmp/slickcfg-$(uuidgen) /tmp/doxygen-comment-1.cpp
2. Default config, so just hit "finish" in the config wizard.
3. Copy the following into the document:
Code: [Select]
/** @todo Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
 * do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
 * minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip... */
4. Place the cursor at the end of the 2nd line (i.e. after "Ut enim ad").
5. Hit the delete key.
6. Result here with 27.0.2.0 (w/ fixes from last week) has an unwanted " */" bit added to it:
Code: [Select]
/** @todo Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
 * do eiusmod tempor incididunt ut labore et dolore magna
 * aliqua. Ut enim adminim veniam, quis nostrud exercitation
 * ullamco laboris nisi ut aliquip... */ */
4
Have recently migrated from V18 to V25 and now find that the Search and Search/Replace dialogs lose focus, in fact they are non-modal, so after a search is done, whatever I type goes into the editor window behind it. The "ESC Dismisses" for 'Appearance/Tool Windows/Find and Replace' is ticked and I have also restarted SlickEdit, no change. Is there anything else that I need to do to have the ESC key work to dismiss the dialogs/make them modal?
5
SlickEdit® / Re: Any support for docker?
« Last post by Clark on May 27, 2023, 10:41:59 pm »
This is a little better. It's not very smart but it does look better. It assumes an upper case word at the start of a line is a keyword and colors anything that looks like a switch (-y or --what-ever) for a command.

Code: [Select]
<colorcoding_profiles n="colorcoding_profiles.Docker" version="2">
<idchars v="a-zA-Z_$ 0-9"/>
<case_sensitive v="1"/>
<mn_flags v="dot_float digit_int digit_float"/>
<p n="comment,#">
<attrs color_to_eol="comment" line_continuation_char="\"/>
</p>
<p n='string,"'>
<attrs end='"' line_continuation_char="\"/>
</p>
<p n="string,'">
<attrs end="'" line_continuation_char="\"/>
</p>
<p n="comment,\#([ \t]*)escape=`">
<attrs end="^(#=\\#([ \\t]*)escape=)" flags="regex end_regex multiline dont_color_as_embedded_if_possible" embedded_lexer="Docker backtick">
</attrs>
</p>
<p n="comment,\#([ \t]*)escape=\\">
<attrs end="^(#=\\#([ \\t]*)escape=)" flags="regex end_regex multiline dont_color_as_embedded_if_possible" embedded_lexer="Docker">
</attrs>
</p>
<!--p n="other,(#&lt;=^[ \t]*)[A-Z]#(#=$|[ \t])">
<attrs end="$" flags="end_regex regex" start_color="k" line_continuation_char='\'>
<iattrs type="lib" start="(#&lt;=(^|[ \t]))--[a-zA-Z0-9\-]#+" flags="regex"/>
<iattrs type="lib" start="(#&lt;=(^|[ \t]))-[a-zA-Z0-9]#+" flags="regex"/>
</attrs>
</p-->
<p n="k,(#&lt;=^[ \t]*)[A-Z]#(#=$|[ \t])">
<attrs flags="regex"/>
</p>
<p n="lib,(#&lt;=(^|[ \t]))--[a-zA-Z0-9\-]#+">
<attrs flags="regex"/>
</p>
<p n="lib,(#&lt;=(^|[ \t]))-[a-zA-Z0-9]#+">
<attrs flags="regex"/>
</p>
</colorcoding_profiles>
<colorcoding_profiles n="colorcoding_profiles.Docker backtick" version="2">
<idchars v="a-zA-Z_$ 0-9"/>
<case_sensitive v="1"/>
<mn_flags v="dot_float digit_int digit_float"/>
<p n="comment,#">
<attrs color_to_eol="comment" line_continuation_char="`"/>
</p>
<p n='string,"'>
<attrs end='"' line_continuation_char="`"/>
</p>
<p n="string,'">
<attrs end="'" line_continuation_char="`"/>
</p>
<p n="string,\#([ \t]*)escape=`">
<attrs end="^(#=\\#([ \\t]*)escape=)" flags="regex end_regex multiline dont_color_as_embedded_if_possible" embedded_lexer="Docker backtick">
</attrs>
</p>
<p n="comment,\#([ \t]*)escape=\\">
<attrs end="^(#=\\#([ \\t]*)escape=)" flags="regex end_regex multiline dont_color_as_embedded_if_possible" embedded_lexer="Docker">
</attrs>
</p>
<p n="k,(#&lt;=^[ \t]*)[A-Z]#(#=$|[ \t])">
<attrs flags="regex"/>
</p>
<p n="lib,(#&lt;=(^|[ \t]))--[a-zA-Z0-9\-]#+">
<attrs flags="regex"/>
</p>
<p n="lib,(#&lt;=(^|[ \t]))-[a-zA-Z0-9]#+">
<attrs flags="regex"/>
</p>
</colorcoding_profiles>
6
SlickEdit® / Re: Any support for docker?
« Last post by Clark on May 27, 2023, 05:12:56 pm »
No color coding for it yet. You'll need to use some more advanced regex features to support "# escape=`". You won't be able to support the blank line requirement after preprocessing but I doubt that will be a big problem. Best to define embedded languages to handle this (one profile for backtick and the default profile uses backslash). Not a lot of good docs for token syntax. Otherwise, I would have done more work here. I don't know if strings are multi-line. Don't know if strings support escape. Don't know if there are other strings than double quotes. Don't know what the keywords are.

Add these profiles to your your user.cfg.xml
Code: [Select]
<colorcoding_profiles n="colorcoding_profiles.Docker" version="2">
<idchars v="a-zA-Z_$ 0-9"/>
<case_sensitive v="0"/>
<mn_flags v="dot_float digit_int digit_float"/>
<p n="comment,#">
<attrs color_to_eol="comment" line_continuation_char="\"/>
</p>
<p n='string,"'>
<attrs end='"'/>
</p>
<p n="comment,\#([ \t]*)escape=`">
<attrs end="^(#=\\#([ \\t]*)escape=)" flags="regex end_regex multiline dont_color_as_embedded_if_possible" embedded_lexer="Docker backtick">
</attrs>
</p>
<p n="comment,\#([ \t]*)escape=\\">
<attrs end="^(#=\\#([ \\t]*)escape=)" flags="regex end_regex multiline dont_color_as_embedded_if_possible" embedded_lexer="Docker">
</attrs>
</p>
</colorcoding_profiles>
<colorcoding_profiles n="colorcoding_profiles.Docker backtick" version="2">
<idchars v="a-zA-Z_$ 0-9"/>
<case_sensitive v="0"/>
<mn_flags v="dot_float digit_int digit_float"/>
<p n="comment,#">
<attrs color_to_eol="comment" line_continuation_char="`"/>
</p>
<p n='string,"'>
<attrs end='"'/>
</p>
<p n="string,\#([ \t]*)escape=`">
<attrs end="^(#=\\#([ \\t]*)escape=)" flags="regex end_regex multiline dont_color_as_embedded_if_possible" embedded_lexer="Docker backtick">
</attrs>
</p>
<p n="comment,\#([ \t]*)escape=\\">
<attrs end="^(#=\\#([ \\t]*)escape=)" flags="regex end_regex multiline dont_color_as_embedded_if_possible" embedded_lexer="Docker">
</attrs>
</p>
</colorcoding_profiles>

You will need to create a Docker language mode and reference the "Docker" color coding profile. You can do this in the options dialog.
7
SlickEdit® / Any support for docker?
« Last post by pbrightly on May 27, 2023, 12:54:43 am »
Any support for Docker planned in the future?  Or has anyone bothered to colorize Dockerfile syntax?
I could just do that myself, but I'm surprised if it hasn't been done by anyone.
8
The linux build (qt4) works great. Been using it for a two days now and haven't committed any trailing white space yet.

Thanks!
9
SlickEdit® / Re: The select-code-block function for Clojure
« Last post by Clark on May 25, 2023, 09:52:43 pm »
It's doable. I'll look into it for v28.
10
SlickEdit® / Re: The select-code-block function for Clojure
« Last post by TheHumbleOne on May 25, 2023, 09:49:58 pm »
Clark: Thanks for your quick reply.

If the support for Clojure can be enhanced, the Clojure community will have a viable alternative to Emacs. Just saying...
Pages: [1] 2 3 ... 10