Menu

Editor - code highlighting - supported languages

2021-03-12
2021-12-16
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2021-03-12

    Is there any way to add PowerShell to the list of supported languages in the included CKEditor?

     
  • Vincent @ Combodo

    Hi Jeffrey,
    I don't think that we have any control on the CKEditor supported languages.

     
  • Guillaume Lajarige

    Hello Jeffrey,

    For now we only use the default highlighting plugin (highlight.js), we don't plan on using GeSHi for now as it requires server-side computation.

    Apparently highlight.js should be able to support PowerShell, see here (under "all").

    If you feel like digging a bit on how to enable it with the standard CKEditor plugin, we can try to add this to the 3.0

    Cheers,
    Guillaume

     
    • Jeffrey Bostoen

      Jeffrey Bostoen - 2021-03-13

      Quick question; is the plan to use the latest major version of CKEditor? Or will you stick to a certain version for now?

       
      • Guillaume Lajarige

        For the 3.0 version of iTop we will stick to version currently in the repository (CKEditor 4.x) as the beta is just around the corner.
        For a next version we might consider upgrading to CKEditor 5.x :)

         
  • wnet2

    wnet2 - 2021-12-16

    Reading through the forum und heavily searching, I could not find any other reference to the syntax higlightning or CKEditor.
    This is all good and fine and it works for me as long as I edit the richt text field (see attached screen copy).
    Once I have saved the FAQ or other richt text content, it wont show up as richt text content any more...
    Do you have any suggestion?

    My installed versions:
    ===== begin =====
    iTopVersion: 2.7.5-1
    iTopBuild: 7770
    iTopBuildDate: 2021-07-12 19:29:29
    DataModelVersion: 2.7.5
    MySQLVersion: 10.5.9-MariaDB
    PHPVersion: 7.4.25
    OSVersion: WINNT
    WebServerVersion: Apache/2.4.51 (Win64) mod_authnz_sspi/0.1.1 OpenSSL/1.1.1

     
  • wnet2

    wnet2 - 2021-12-16

    Won't allow me to add more than one picture:

     
  • Vincent @ Combodo

    It's a known issue in 2.7.x (not even fixed in 2.7.6), but it is fixed in 3.0, which will be out in a month.

     
  • wnet2

    wnet2 - 2021-12-16

    Many thanks! I look forward to it then, however it may take a while for the many extensions to be version 3.0 ready (like IPAM etc.).

     
  • Vincent @ Combodo

    2 months after at maximum, IPAM should be 3.0 ready, see here for all extensions compatibility

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.