We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1778
    • 659 Posts
    Hi all,

    I did a git clone and a git checkout with the origin/2.0 branch, did a fresh new install with a fresh new DB. All works very fine, (no warning, no error in log, nice smiley ).
    I installed the lastest version of CodeMirror 1.1.0 rc1 (and only CodeMirror, no other addon).
    CodeMirror does not work as it does in Rev#2.0.0-pl :
    When I open a template, or a snippet, or a chunk, the "normal" behavior of CodeMirror is to show the code inside the template/chunk/snippet, with indentation and colored syntax.
    In the 2.0.1-pl from git, when I open a template/snippet/chunk, the code is displayed "as in resource" (no indentation, no colored syntax) since I edit the template/chunk/snippet, modify it (just typing in the edit area), and save it. Then I retrieve the codeMirror indentation, and colored syntax. If I leave the template/chunk/snippet, (to open another one for example), and I re-open it I lost again the codeMirror features, have to edit, save etc...

    It’s not a big bug (is it one ?), but it’s a bit annoying ...

    Is it "just a little bug" or I missed something ?
    Thanks
    Cheers

    Configuration :
    Windows7
    Wamp 2.0.i
    PHP 5.3.1
    Apache 2.2.14
    MySQL 5.1.41
    MySQLClient mysqlnd 5.0.5-dev - 081106 - $Revision: 289630 $
    All privileges and grant on the DB...
    (No eAccelarator or similar...)

    Revo 2.0.1-pl

    [EDIT] The only case where codeMirror works as usual is when I double-click on a file (in the left tree, tab "Files"), the file is edited with the colored syntax, and the indentation... Same thing on Chrome and FF...
      • 19388
      • 297 Posts
      Anything about it? CodeMirror not work for me too in 2.0.2
        • 12875
        • 2 Posts
        My codemirror don’t want to color html and other code in resource...
        Is it normal? Can i make, it do?
          • 28215
          • 4,149 Posts
          splittingred Reply #4, 16 years ago
          Upgrade to 2.0.4.
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 12875
            • 2 Posts
            It doesn’t help =(
            So i have to move my page content to a chunk and edit it there...
              • 28215
              • 4,149 Posts
              splittingred Reply #6, 16 years ago
              You upgraded both Revo to 2.0.4 and CodeMirror to its latest version?
                shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com