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

    Im working on large css files of which some files are over 2000 lines long. Its quite difficult having to establish where something is in the css file. is there away to show line numbers when viewing css files? also the new version of manager ive seemed to have lost the search box when pressing CTRL "f" in the content box, on the old version showed a half decent search box .

    Cheers
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      By itself MODX only provides a basic HTML textarea. Install the Ace or CodeMirror extras for syntax highlighting, search-and-replace, line numbers, and other code editor features.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        You also may be interested in this method of using resources to edit small blocks of CSS, saving them all into a single minified CSS file. It's a mashup of Donald Atkinson's RO.IDEs concept of using MODX resources as an IDE, and the CssSweet plugin to concatenate and minify the CSS from the resources.
          Studying MODX in the desert - http://sottwell.com
          Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
          Join the Slack Community - http://modx.org
          • 47401
          • 295 Posts
          ok thanks scottwell for your quick response, i will give the plug-ins a go

            • 28042 ☆ A M B ☆
            • 24,524 Posts
            If you try that custom saveContextCSS plugin, make sure to disable the default cssSweet saveCustomCss plugin.
              Studying MODX in the desert - http://sottwell.com
              Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
              Join the Slack Community - http://modx.org