I've put together some code on the dev server that makes it very simple for janitors to add readmore tags to nodes containing long code sections, as these are quite a common 'offense'.

It works like this - if you're a janitor and you have the 'Don't show embedded d/l links' setting turned off, then next to the [download] link at the base of a code section, you'll see another link called [add readmore]. Click on this and the code section will get wrapped in readmore tags (and the edit will be logged in the node history table).

Comments on this functionality much welcome.

Replies are listed 'Best First'.
Re: Simpler addition of readmore tags
by zentara (Cardinal) on Jul 22, 2007 at 10:56 UTC
    You must have a strong psychic broadcast...... 2 days ago, whilst listening to the great-radio-station-in-the-sky, I thought..." I've left alot of long code nodes without readmore tags, and wonder if there was a way to automate it's inclusion?"

    Something like all code nodes over 100 lines automatically get wrapped in readmore's. Then you could have a <no-readmore> tag instead. :-)


    I'm not really a human, but I play one on earth. Cogito ergo sum a bum
      For much time my TODO list has included an entry to add a step to either the preview or creation process that auto-suggests the insertion point of a readmore for long nodes lacking one. The real difficulty is coming up with some decent heuristic for insertion point: length without splitting sentences, widowing, etc.

      --
      In Bob We Trust, All Others Bring Data.