We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34123
    • 103 Posts
    You ’ve done an excellent Job for this package ! it’s a great addition !!
      Configuration Apache + Modx + MSSQL 2008
      ===============================
      Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.8
      OS : Windows 2008 R2
      SGBDR : Microsoft SQL Server 2008 (express)
      • 31267
      • 18 Posts
      Is line numbers working with you guys?

      Not with me in a call like this;

      <li class='item'>
      <a href="[[~[[+id]]]]" class='cbox' title="[[+pagetitle]]">[[+pagetitle]]</a>
      <div class='desc'>[[GeSHI?
      	&highlight=`<pre class="[[+class]]">[[+content]]</pre>`
      	&enable_line_numbers=`1`
      ]]</div>
      </li>


        • 17499 ☆ A M B ☆
        • 872 Posts
        It’s supposed to be activated by default.
        Do you run the last version ?
          • 31267
          • 18 Posts
          Quote from: lossendae at Dec 07, 2010, 01:34 PM

          It’s supposed to be activated by default.
          Do you run the last version ?

          I think so, it’s this one - http://modxcms.com/extras/package/?package=746 - GeSHI Syntax highlighter 0.1-RC2
            • 34123
            • 103 Posts
            vampaz, could you disable your CSS (you can enable the CSS provided with Geshi). Is it working ?
              Configuration Apache + Modx + MSSQL 2008
              ===============================
              Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.8
              OS : Windows 2008 R2
              SGBDR : Microsoft SQL Server 2008 (express)
              • 31267
              • 18 Posts
              I’m very very sorry, what a terrible mistake, i’ve a css reset :

              ol, ul {
              	list-style: none;
              }


              Thanks for the reminder..

              PlEase continue the nice work you have done so far...
                • 34123
                • 103 Posts
                I had the same issue when I tried to use this addon
                  Configuration Apache + Modx + MSSQL 2008
                  ===============================
                  Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.8
                  OS : Windows 2008 R2
                  SGBDR : Microsoft SQL Server 2008 (express)
                  • 17895
                  • 209 Posts
                  I have a blog that sometimes has posts with some code snippet. It would be great to have, e.g., a <code></code> inside the content and then an automatic way to syntax highlight it. I think this is the way this Syntax Highlighter worked up to this revision, am I right? Is it possible to re-introduce this?
                    Daniele "MadMage" Calisi
                    • 17499 ☆ A M B ☆
                    • 872 Posts
                    GeSHI doas not work with the <code> tag.
                    From the GeSHI documentation:

                    At this stage there isn’t an option to wrap the code in <code> tags (unless you use the function geshi_highlight), partly because of the inconsistent and unexpected ways stuff in <code> tags is highlighted. Besides, <code> is an inline element. But this may become an option in future versions.
                      • 27408
                      • 33 Posts
                      When I try to use the Geshi Snippet with the following call in the template:
                      [[GeSHI?
                          &highlight=`[[*content]]`
                          &enable_line_numbers=`1`
                      ]]


                      The result looks like this.

                      Sourcecode:
                      <pre class="php">
                      	<ol>
                      		<li class="li1">
                      			<div class="de1"><!--?php</div>
                      		</li>
                      		<li class="li1">
                      			<div class="de1"> </div>
                      		</li>
                      		<li class="li1">
                      			<div class="de1">$a = 'hoi';</div>
                      		</li>
                      		<li class="li1">
                      			<div class="de1">echo $a;</div>
                      		</li>
                      		<li class="li2">
                      			<div class="de2"> </div>
                      		</li>
                      		<li class="li1">
                      			<div class="de1">?--></div>
                      		</li>
                      	</ol>
                      </pre>
                      


                      Something is preventing from highlighting the correct code?? Part of the geshi.css is applied. But I think something is going wrong with parsing the content and applying the right classes. I have no idea how to fix this though.