[xwiki-users] What will happen if I install extension with almost the same function?
I have Syntax Highlighting Application that "Provides Syntax Highlighting" (uses Highlight.JS). I want to install Highlight Macro(uses Highlight.JS with the same syntax), because there is a right access problem with either Syntax Highlighting Application or Highlight.JS. idk What will happen? Do i have to delete Syntax Highlighting Application first? I tried to delete, but after that Highlight JS Macro(which Highlight Macro extension uses too) still remain. -- View this message in context: http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-wi... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Sonic, On 8 Feb 2016 at 09:04:07, Sonic ([email protected](mailto:[email protected])) wrote:
I have Syntax Highlighting Application that "Provides Syntax Highlighting" (uses Highlight.JS).
This is not correct. The Syntax Highlighting Application doesn’t use Highlight.JS (it uses CodeMirror), I think you’re confusing with the Highlight Macro: * Syntax Highlighting Application (CodeMirror): http://extensions.xwiki.org/xwiki/bin/view/Extension/Syntax+Highlighting+App... * Highlight Macro: http://extensions.xwiki.org/xwiki/bin/view/Extension/Highlight+Macro
I want to install Highlight Macro(uses Highlight.JS with the same syntax), because there is a right access problem with either Syntax Highlighting Application or Highlight.JS. idk
I recommend using the Syntax Highlighting Application which is more maintained than the Highlight Macro, but it’s possible that the Highlight Macro works very well too (haven’t tried it for a long time). I’d be interested in a comparison between the 2 actually so that we can mention the pros and cons of each on their documentation pages.
What will happen? Do i have to delete Syntax Highlighting Application first?
I have no idea if they’re compatible or not, probably not since they’ll both try to highlight content...
I tried to delete, but after that Highlight JS Macro(which Highlight Macro extension uses too) still remain.
I don’t understand what you mean. You said you tried to delete the Syntax Highlighting Application and then the next sentence says that Highlight JS Macro remains. Of course it remains since you didn’t uninstall it. BTW don’t delete pages, instead prefer uninstalling the extension from the Administration page. Thanks -Vincent
View this message in context: http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-wi... Sent from the XWiki- Users mailing list archive at Nabble.com.
Thanks. So, There is a Syntax Highlighting Application, Highlight JS Macro in my xwiki and its'not the same. How to use Syntax Highlighting Application? Where can I see settings for Highlight JS Macro? This macro is not working(not highlighting code) for users without "Administrator" or "Programming" rights. -- View this message in context: http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-wi... Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi Sonic, You`re clearly mixing things up a bit. I`m not very familiar with the Highlight Macro [1] but, as the name implies, it is a macro that is used at rendering time. That means that you go in edit more, you use the macro in the actual content of the page to wrap some code in it and then you go into view mode and see the code pretty printed with syntax highlighted and all. What the Syntax Highlighting Application [2] does is that, at *edit* time, it augments your editor so that syntax highlighting is done *while you are editing* the page. It is not for presentation purposes (like a macro is), but it is there to help you edit script codes inside pages (example: velocity scripts, JavaScript/CSS inside Style/JavaScript Extensions, etc). Once you save the page and go to view mode, the code you wrote usually executes and you see a result, but not (a pretty print of) the code itself. So the Syntax Highlighting Application is a tool to help you write XWiki applications (if you may), while the Highlight Macro is a container to help you display/present some code inside the content of a wiki page, but not to execute it. There is no issue of them running at the same time, because they do different things. Hope this helps, Eduard ---------- [1] http://extensions.xwiki.org/xwiki/bin/view/Extension/Highlight+Macro [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Syntax+Highlighting+App... On Mon, Feb 8, 2016 at 1:36 PM, Sonic <[email protected]> wrote:
Thanks. So, There is a Syntax Highlighting Application, Highlight JS Macro in my xwiki and its'not the same.
How to use Syntax Highlighting Application? Where can I see settings for Highlight JS Macro? This macro is not working(not highlighting code) for users without "Administrator" or "Programming" rights.
-- View this message in context: http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-wi... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Thanks. I got it at last. I have this Highlight Macro. -- View this message in context: http://xwiki.475771.n2.nabble.com/What-will-happen-if-I-install-extension-wi... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Eduard Moraru -
Sonic -
vincent@massol.net