Author Topic: SymHighlights GUI  (Read 4936 times)

stsimmer

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
Re: SymHighlights GUI
« Reply #15 on: November 01, 2017, 10:35:10 am »
Thank you very much, what about installation instruction?

jporkkahtc

  • Senior Community Member
  • Posts: 1491
  • Hero Points: 123
  • Text
Re: SymHighlights GUI
« Reply #16 on: November 01, 2017, 07:45:09 pm »
In the readme.txt
The readme tells you to put these macro files in your CONFIG directory.
The CONFIG dir is something like C:\Users\joe\Documents\Slickedit\22.0.0.0\

I like to put my macros in a different location.
In CONFIG\user.cfg.xml I have added:
Code: [Select]
<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>

This lets me put my macros into these two folders as well:
Code: [Select]
C:\Users\joe\Documents\Slickedit\macros
C:\Users\joe\Documents\Slickedit\macros\Highlight


There doesn't seem to be a UI in Slickedit to create this entry in user.cfg.xml, but it does preserve once it is there. (Restart slick after adding it).

Anyways, once you unpack the macros into CONFIG or Highlight as above, from the slick command line just run
Code: [Select]
symtagload

To be extra clear, when you have done it properly you will have either

Code: [Select]
C:\Users\joe\Documents\Slickedit\22.0.0.0\symtagload.e
or
Code: [Select]
C:\Users\joe\Documents\Slickedit\macros\Highlight\symtagload.e

stsimmer

  • Junior Community Member
  • Posts: 4
  • Hero Points: 0
Re: SymHighlights GUI
« Reply #17 on: November 02, 2017, 05:56:07 am »
I am sorry about incorrect question…  I need "how to..." for linux and VS22…
Currently i put a files to the /opt/slickedit-pro2017/macros/HighlightsDlg/ … (default installation directory for slick edit 22)
(HighlightsDlg created by me, and all files from zip under this directory...)
After this, I am trying to load  macro from: Macro->load module..
and nothing...

jporkkahtc

  • Senior Community Member
  • Posts: 1491
  • Hero Points: 123
  • Text
Re: SymHighlights GUI
« Reply #18 on: November 02, 2017, 03:40:46 pm »
Your config directory would be something like ~/.slickedit/22.0.0
User your user account, not the slickedit installation folder.

You should see a file named user.cfg.xml in the same directory.

at5dapa1

  • Senior Community Member
  • Posts: 137
  • Hero Points: 10
Re: SymHighlights GUI
« Reply #19 on: February 16, 2018, 10:28:29 am »
In CONFIG\user.cfg.xml I have added:
Code: [Select]
<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>

Seems now (at least in Windows) we have to use SLICKEDITCONFIGVERSION instead of SLICKEDITCONFIG, so I have something like this:
Code: [Select]
<misc.environment n="misc.environment" version="1" configs="win">
<p n="VSLICK_MY_MACROS" v="%SLICKEDITCONFIGVERSION%_additional_macros_\;%SLICKEDITCONFIGVERSION%_additional_macros_\my_macros\;%SLICKEDITCONFIGVERSION%_additional_macros_\Symhighlight_V2\"/>
<p n="VSLICKMACROS" v="%VSLICKMACROS%;%VSLICK_MY_MACROS%"/>
<p n="VSLICKPATH" v="%VSLICKPATH%;%VSLICK_MY_MACROS%"/>
<p n="VSLICKINCLUDE" v="%VSLICKINCLUDE%;%VSLICK_MY_MACROS%"/>
</misc.environment>

echo %SLICKEDITCONFIGVERSION%
  =>  <My_Strange_Path>\config\22.0.2\
echo %SLICKEDITCONFIG%
  =>  <My_Strange_Path>\config\

at5dapa1

  • Senior Community Member
  • Posts: 137
  • Hero Points: 10
Re: SymHighlights GUI
« Reply #20 on: February 16, 2018, 10:45:53 am »
Not sure if it's on my config only, but in SymHighlightV2/HighlightDialog.e, in findItem(), had to replace s_list_ctrl._TreeGetNextIndex(0) with s_list_ctrl._TreeGetNextIndex(TREE_ROOT_INDEX), else I was getting "This property or method is not allowed on this object" on new SE22.0.2/Win7x64.

jporkkahtc

  • Senior Community Member
  • Posts: 1491
  • Hero Points: 123
  • Text
Re: SymHighlights GUI
« Reply #21 on: February 16, 2018, 03:35:02 pm »
wrt SLICKEDITCONFIGVERSION:

Oops -- slickeditconfig is a system env var I set to tell Slick where to put the user configuration, instead of the default C:\users\<user>\documents\my slickedit config.

So you are right SLICKEDITCONFIGVERSION is the variable to use.

jporkkahtc

  • Senior Community Member
  • Posts: 1491
  • Hero Points: 123
  • Text
Re: SymHighlights GUI
« Reply #22 on: February 16, 2018, 03:37:03 pm »
wrt TREE_ROOT_INDEX: That is defined as 0 in C:\Program Files\SlickEdit Pro 22.0.2\macros\slick.sh.

If you change it back to 0 does the problem still repro for you?

Can you share repro steps?

at5dapa1

  • Senior Community Member
  • Posts: 137
  • Hero Points: 10
Re: SymHighlights GUI
« Reply #23 on: February 17, 2018, 11:45:21 am »
Indeed I saw too that TREE_ROOT_INDEX is 0 and was a bit puzled why was complaining there and why TREE_ROOT_INDEX helped as it did work fine in 22.0.1. It appered sudenly in 22.0.2, maybe the macro reloading did help...
But now I put back to 0 and no more error! So maybe was something else, please ignore my comment for now. I'll come back if I hit again the issue.