Recent Posts

Pages: [1] 2 3 ... 10
1
SlickEdit® / Re: How to disable a popup window?
« Last post by TheHumbleOne on December 13, 2024, 04:09:33 PM »
That worked like a charm. This is why I love SlickEdit!
2
SlickEdit® / Re: How to disable a popup window?
« Last post by Clark on December 13, 2024, 02:39:14 PM »
Tools>Options>Appearance>General>Show number base popups on mouse-over
3
SlickEdit® / How to disable a popup window?
« Last post by TheHumbleOne on December 13, 2024, 02:19:36 PM »
I am using SlickEdit version 28 on Windows 10.

When I use the editor and hover the cursor over a number, a small popup window shows me the hexadecimal or binary equivalent of that particular number. How do I disable this popup window?
4
General Programming / Re: Elm
« Last post by fryremote on December 13, 2024, 10:31:19 AM »
Is there any Slickedit syntax highlighting planned for Elm?  https://elm-lang.org/geometry dash
Has the latest version been updated?
5
SlickEdit® / Re: insert_file_list() limited to 60 entries in 28.0.2 hotfix 19 ?
« Last post by Clark on December 09, 2024, 09:18:32 PM »
That looks much better
6
SlickEdit® / Re: insert_file_list() limited to 60 entries in 28.0.2 hotfix 19 ?
« Last post by rowbearto on December 09, 2024, 07:13:00 PM »
Thanks Clark, using down() made the difference!

Below is my function now, appreciate any comments you have on it.

It no longer gets stuck regardless of whether or not the dsay() are commented out.

Code: [Select]
// Reads a line from the current document and takes into account if the line
// is getting wrapped, it will get the full line including all the wraps.
// See: https://community.slickedit.com/index.php?topic=19548.new;topicseen#new
static _str get_full_line()
{
   _str line = "";
   while ( true )
   {
      _str linePortion;
      get_line(linePortion);
      dsay("linePortion: " linePortion);
      line = line linePortion;
      if ( !(_lineflags()&VSLF_EOL_MISSING ))
      {
         // This is the end of the line, it is no longer wrapped or truncated, so return it
         // Caller is responsible for calling down() to advance to next line.
         return line;
      }
      // Being here means that get_line() didn't read the full line, it wrapped it to
      // the next line in the editor, so we will need to read the next line.
      dsay("not end of line");
      // Call down() to go to the next line.
      if (down())
      {
         // This means we got to the end of the file
         return line;
      }
   }
   // Should never reach here.
   return line;
}
7
SlickEdit® / Re: insert_file_list() limited to 60 entries in 28.0.2 hotfix 19 ?
« Last post by Clark on December 09, 2024, 06:27:00 PM »
Looks to me like both of your functions should get stuck. I'm not seeing a call to down in either of your loops. Make sure to check the status of down() and break the loop.
8
SlickEdit® / Re: insert_file_list() limited to 60 entries in 28.0.2 hotfix 19 ?
« Last post by rowbearto on December 09, 2024, 05:20:41 PM »
I changed the order of things in function (moving the concatenation of line and linePortion to after determining getNextLine()), commented out the dsay and now it doesn't get stuck.

But I don't have an explanation for why my first attempt got stuck?

Any ideas?

Here it is with the order changed:

Code: [Select]
// Reads a line from the current document and takes into account if the line
// is getting wrapped, it will get the full line including all the wraps.
// See: https://community.slickedit.com/index.php?topic=19548.new;topicseen#new
static _str get_full_line()
{
   bool getNextLine = true;
   _str line = "";
   while ( getNextLine )
   {
      _str linePortion;
      get_line(linePortion);
      // dsay("linePortion: " linePortion);
      if ( _lineflags()&VSLF_EOL_MISSING )
      {
         getNextLine = true;
      }
      else
      {
         getNextLine = false;
      }
      line = line linePortion;
   }
   return line;
}
9
SlickEdit® / Re: insert_file_list() limited to 60 entries in 28.0.2 hotfix 19 ?
« Last post by rowbearto on December 09, 2024, 05:16:18 PM »
Thanks Clark. I tried turning this into a function, which works only if I have the 'dsay()' statement in it (after the get_line() in the below code).

When I take out the dsay() I think it is in an infinite loop as 'top' shows vs_exe using 100% CPU and SlickEdit is stuck.

But when have dsay() there it functions properly.

I'm using 28.0.2 hotfix 19 on Linux x64.

Any ideas?

Code: [Select]
// Reads a line from the current document and takes into account if the line
// is getting wrapped, it will get the full line including all the wraps.
// See: https://community.slickedit.com/index.php?topic=19548.new;topicseen#new
static _str get_full_line()
{
   bool getNextLine = true;
   _str line = "";
   while ( getNextLine )
   {
      _str linePortion;
      get_line(linePortion);
      dsay("Undo debug, linePortion: " linePortion);
      line = line linePortion;
      if ( _lineflags()&VSLF_EOL_MISSING )
      {
         getNextLine = true;
      }
      else
      {
         getNextLine = false;
      }
   }
   return line;
}
10
SlickEdit® / Re: Fixing Mixed Tabs and Spaces in C Source Code
« Last post by Clark on December 09, 2024, 02:02:21 PM »
Tools>Beautify>Edit Current Profile
Pages: [1] 2 3 ... 10