Recent Posts

Pages: 1 ... 8 9 [10]
91
SlickEdit® / Re: Vertical Red Line
« Last post by LBCEi on February 09, 2018, 01:43:26 am »
This is controlled by Tools>Options>General>Vertical Line Columns.  Set it to zero to suppress the display of a vertical line.
92
SlickEdit® / Vertical Red Line
« Last post by kafolske on February 09, 2018, 12:37:54 am »
Why is there a vertical red line in my editor at column 72?  I can't find the setting that makes it go away and I can't find any information about it on the forums. 

93
Features and/or Improvements / Preview during beautifier configuraton
« Last post by jporkkahtc on February 08, 2018, 06:36:29 pm »
While I'm setting options in Beautifier -> Edit configuration, DZ should be open showing the current buffer comparing the buffer as is, and beautified with the current options.

Ideally, every click changing the options would update the diff (*and* preserving the scroll position!).
If that is too slow, then an apply button could be clicked to update the diff.
94
SlickEdit® / Project -> New -> java -> Bean
« Last post by jporkkahtc on February 08, 2018, 06:16:02 pm »
See the attached - I'm pretty sure it shouldn't look like this.
At least one other project type does this.
95
SlickEdit® / Re: c/c++ No reference to #define when preceded by #ifndef
« Last post by Dennis on February 07, 2018, 03:49:40 pm »
You will have to define the macro in the C/C++ Preprocessing options for it to be expanded.  And yes, that will make the definition of the macro within the #ifndef section be treated as inactive code (like a comment).  You won't see the reference in the #define, but you will see the reference in the #ifndef, so that gets you close enough.

In our next patch to SlickEdit (22.0.2), we are adding functionality to automatically pick up #define preprocessing within the current file.  However, this probably will not help you, as I imagine that the #define is in a header file, and the use is in another module, so defining it in the C/C++ Preprocessing options is your best bet.
96
SlickEdit® / Re: c/c++ No reference to #define when preceded by #ifndef
« Last post by LarryB on February 06, 2018, 08:40:45 pm »
Okay, I am not totally happy with how it is now.  While SlickEdit now recognizes the macro USTRING_DECL_OPT it is not processing the macro -
#ifndef U_STRING_DECL_OPT
#define U_STRING_DECL_OPT(ustring, string, len) \
        /* original string array declare replaced with a pointer    @RW2A   \
        UChar ustring[len] may need to restore for Unicode          @RW2C */\
        UChar *ustring = string
#endif
-- when looking at the code that uses it:
   U_STRING_DECL_OPT(UEmptyString, "", 2); //U
   UEmptyString = "";           // not codepage dependent                 @B37C
The variable UEmptyString is not be resolved. (showing up in red)
The only time the variable was resolved was when I had the macro defined to the preprocessor and changed the #ifndef to an #ifdef.
97
That fixed it! Thanks!
98
SlickEdit® / Re: Can't put 'p_buf_name_no_symlinks' into clipboard for read-only file?
« Last post by Dan on February 06, 2018, 08:32:46 pm »
Try adding VSARG2_READ_ONLY to the name info at the top.
99
SlickEdit® / Can't put 'p_buf_name_no_symlinks' into clipboard for read-only file?
« Last post by rowbearto on February 06, 2018, 08:30:11 pm »
I created the below macro to copy the name of the current buffer with symlinks resolved into the clipboard:

Code: [Select]
_command void copy_buf_name_no_symlinks() name_info(',' VSARG2_REQUIRES_EDITORCTL)
{
    _copy_text_to_clipboard(p_buf_name_no_symlinks);
}

When I execute this macro when a read-only file is in the buffer, I get an error:

Quote
This command is not allowed in read only mode.

Is there any way I can get this fixed so that I can execute this macro also on a read-only file?

Thanks,
Rob
100
SlickEdit® / Re: c/c++ No reference to #define when preceded by #ifndef
« Last post by LarryB on February 06, 2018, 07:36:41 pm »
I am also running with 22.0.1.  I did not previously have the macro defined in the Preprocessing configuration, but added it hoping it would fix my issue.  It did not (and agrees with what you are saying).  So are you saying that if I delete the U_STRING_DECL_OPT macro in the Preprocessing config it should work? I deleted it, and SlickEdit went into an immediate retag all, and it is now resolved.  This is how I had it when I started. I'm grateful, but would still want to know why it is working now, when this is how it was when I started.
Pages: 1 ... 8 9 [10]