• Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Default
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Quartz
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Slate
  • Solar
  • Superhero
  • Vapor
Collapse

Community

    • All categories
    Load new posts
Log in to post
  • drewD

    Using highlight.js for code blocks as posts load

    Scheduled Pinned Locked Moved Plugin Development highlight redactor
    0 Votes
    3 Posts
    1806 Views
    drewD

    @baris thanks. I realised there's some issues with redactor munging the data.
    When code is insered inside a <pre/> block, switching between HTML and WYSIWYG views will munge the content to HTML entitites.
    You can recreate this issue on this page:
    http://imperavi.com/redactor/examples/typography/

    Switch to code view and add some HTML inside the <pre/> block. I entered:
    <p>test</p>
    Switch to WYSIWYG and back to code and it has been replaced by:

    &lt;p&gt;test&lt;/p&gt;

    This breaks the ability to parse that code later with syntax highlighters.

    I've raised it with Imperavi.

  • SuperMikeS

    How to add a new code style into editor?

    Scheduled Pinned Locked Moved NodeBB Development markdown editor highlight
    0 Votes
    3 Posts
    2065 Views
    SuperMikeS

    @julian Greate! I will push my code plugin in to highlight.js

  • nikN

    Recent post highlighting

    Scheduled Pinned Locked Moved Feature Requests highlight recent posts
    0 Votes
    7 Posts
    2492 Views
    A

    @nik This was the board I tested it on. 😆 I'm not sure if @julian can shed some light on this as something isn't right with your experience and I'm not sure what would cause these things to happen. It's not your build of NodeBB, it's not one browser or the other as it happens on both Desktop & Mobile, the only thing left is your internet connection, but I don't know whether xhr-polling or websocket issues would cause it.

  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
  • Login

  • Don't have an account? Register

  • Login or register to search.