Author Topic: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)  (Read 2203 times)

stsimmer

  • Community Member
  • Posts: 16
  • Hero Points: 0
Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« on: March 08, 2020, 01:12:41 PM »
Hi All

As i remember some years ago, SlickEdit was have an option for "Symbols Highlight" in source code window, defferent colors for different symbols, i am not sure, is this options was a part of SlickEditor or an additional extention...
May be somebody know, in current version 24.xxx  this option was implemented by SlickEdit?
Example attached...

BR
Stanislav

- Attachments and other options
« Last Edit: March 08, 2020, 02:53:45 PM by stsimmer »

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #1 on: March 08, 2020, 01:54:11 PM »
Do you refer to the Symbol coloring feature ? Which can be switched ON. It‘s OFF by default (b/c it costs a bit).

stsimmer

  • Community Member
  • Posts: 16
  • Hero Points: 0
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #2 on: March 08, 2020, 02:57:29 PM »
look on attachment, i can mark/unmark each symbol with different color in source code text in different files files.

stsimmer

  • Community Member
  • Posts: 16
  • Hero Points: 0
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #3 on: March 08, 2020, 03:05:13 PM »
Do you refer to the Symbol coloring feature ? Which can be switched ON. It‘s OFF by default (b/c it costs a bit).

as i understand no, this not for special symbols like "for","if","while","int" etc... this is for any word.

hs2

  • Senior Community Member
  • Posts: 2761
  • Hero Points: 292
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #4 on: March 08, 2020, 04:53:19 PM »
Symbol coloring is related to local vs. global variables, members etc.
Keywords are covered by static (language) color coding.
I afraid both are not exactly the feature you're searching for.
It's probably this https://community.slickedit.com/index.php/topic,11445.msg48360.html#msg48360 user macro.

stsimmer

  • Community Member
  • Posts: 16
  • Hero Points: 0
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #5 on: March 10, 2020, 11:52:39 AM »
Looks like exactly what i need. But trying to install it on my SlickEdit Pro 2019 (v24.0.1.0 64-bit) on Linux, but nothing don’t work,
My installations steps:
1.Downloaded SymHighlightV2 from github: https://github.com/jporkka/slickMacros
2.Copyed all files from SymHighlightV2/*   to /home/<my_user_name>/.slickedit/24.0.1/…
   near file user.cfg.xml ...
4.Edited file user.cfg.xml add next:
Quote
<misc.environment n ="misc.environment" version="1" configs="win">
    <p n="VSLICKMACROS"   v="%VSLICKMACROS%;%SLICKEDITCONFIG%macros;%VSLICKPATH%;%SLICKEDITCONFIG%macros\Highlight"/>
    <p n="VSLICKPATH" v="%VSLICKPATH%;%SLICKEDITCONFIG%macros;%SLICKEDITCONFIG%macros\Highlight"/>
</misc.environment>

Nothing not happened… Something wrong with installation?
Any manual, how to …?   ???  ???  ???   :'(  :'(  :'(

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #6 on: March 11, 2020, 12:39:21 AM »
WRT VSLICKMACROS: This is described in message: https://community.slickedit.com/index.php/topic,17302.msg67232.html#msg67232
This allows you to put your custom macros in a separate directory instead of in the main Slickedit configuration directory.

You will find in /home/<my_user_name>/.slickedit/24.0.1
    vslick.sta
and a lot of other files.

By definging VSLICKMACROS, you can put symhighlight any other custom macro files in /home/<my_user_name>/.slickedit/macros


NOTE:
    "SLICKEDITCONFIG" is typically /home/<my_user_name>/.slickedit
    "SLICKEDITCONFIGVERSION" is typically /home/<my_user_name>/.slickedit/24.0.1

OK.
So, download https://github.com/jporkka/slickMacros
When you have these files properly installed, you will have:
    /home/<my_user_name>/.slickedit/macros/Highlight/colorDistance.e
(and a bunch of others too).

Make the user.cfg.xml changes as you quoted above.

Run `symtagload` in Slickedit.


stsimmer

  • Community Member
  • Posts: 16
  • Hero Points: 0
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #7 on: March 11, 2020, 01:04:26 PM »
Hi
1.Download from a repo, coped it under /home/<user_name>/.slickedit/24.0.1/macros/SymHighlightV2 and other folders coped near this one...
2.Changed in file user.cfg.xml from <... \Highlight"/ > to < ... \SymHighlightV2 "/>
now it look like:
Quote
   <misc.environment n="misc.environment" version="1" configs="win">
      <p n="VSLICKMACROS" v="%VSLICKMACROS%;%SLICKEDITCONFIG%macros;%VSLICKPATH%;%SLICKEDITCONFIG%macros\SymHighlightV2"/>
      <p n="VSLICKPATH" v="%VSLICKPATH%;%SLICKEDITCONFIG%macros;%SLICKEDITCONFIG%macros\SymHighlightV2"/>
   </misc.environment>

Is step 2 correct?

3.Trying to load a macro via menu macro->load macro... choose file :/home/<user_name>/.slickedit/24.0.1/macros/SymHighlightV2/symtagload.e
and recived error
Unable to load module ":/home/<user_name>/.slickedit/24.0.1/macros/SymHighlightV2/symtagload.e "
Macros with defmain may not be loaded...
what wrong with version 24...?

Dennis

  • Senior Community Member
  • Posts: 3961
  • Hero Points: 517
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #8 on: March 11, 2020, 02:09:52 PM »
That is a batch macro.  Instead of Macro > Load, you need to run it from the slickedit command line.

stsimmer

  • Community Member
  • Posts: 16
  • Hero Points: 0
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #9 on: March 11, 2020, 02:44:11 PM »
That is a batch macro.  You need to run it from the slickedit command line.
How to run it? what kind of command i need to write, and how i can check if it was run successfully or no? where is output from macro?
By the way, i have a file with extension kuku.e, how i can create file with extension kuku.ex?  ??? ??? ???
« Last Edit: March 11, 2020, 02:57:30 PM by stsimmer »

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #10 on: March 11, 2020, 03:09:07 PM »
From the slickedit command line.
When you press <ESC> you will see a text box open at the bottom of the Slickedit main window.
Type symtagload and hit enter.

symtagload prints some messages to the Slickedit debug log - a separate window that will open.
It indicates (not very clearly :-( ) if it was OK or not.

stsimmer

  • Community Member
  • Posts: 16
  • Hero Points: 0
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #11 on: March 11, 2020, 04:22:34 PM »
From the slickedit command line.
When you press <ESC> you will see a text box open at the bottom of the Slickedit main window.
Type symtagload and hit enter.
symtagload prints some messages to the Slickedit debug log - a separate window that will open.
This is exactly what i do. but after enter no window, no logs... nothing

jporkkahtc

  • Senior Community Member
  • Posts: 2620
  • Hero Points: 210
  • Text
Re: Symbol-highlight in SlickEdit Pro 2019 (v24.0.1.0 64-bit)
« Reply #12 on: March 11, 2020, 09:17:36 PM »
Maybe that means it worked!
Now run "symtagBindKeys"
To see your key bindings.

if it didn't work, then open symtagload.e and find line 17 -- the "say" command is commented out.
Remove the comment marks, save and run it again.
Now a debug log window will open and print interesting status.