Git Product home page Git Product logo

ipb-syntaxhighlighter's People

Contributors

misterphilip avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

ipb-syntaxhighlighter's Issues

Add in languages to RTE dialog Edit

Currently within the RTE dialog there are the following options:

  • PHP / Generic / Auto Detect
  • JavaScript
  • HTML
  • SQL
  • CSS
  • XML

SyntaxHighlighter includes options for more, and we should allow the user to select them if they'd like.

Large strings in code fail

Due to limits on preg_match* functions, large code values could hit the limit and throw an error / crash php (not good!)

There needs to be a new way to do this (codesyntax.php:93)
if( preg_match_all( '#<pre[^>]*class\s?=\s?(["\'])((?:(?!\1).)*)_prettyXprint((?:(?!\1).)*)\1[^>]*>((?:(?!</pre>).)*)</pre>#is', $txt, $matches ) > 0 )

Convert old tags to new code tags

Right now on IPB the html, php, sql and xml tags are all left out when it comes to parsing. They were only left in for legacy reasons although they do not do anything anymore source

BBcode export & documentation will need to be updated to reflect this change.

Line Highlight

One awesome feature that this syntax highlighter allows us to do is to highlight specific lines.

These could be designated by "##" at the beginning of the line, or user specified input.

Inaccurate & XSS

It is inaccurate in several languages. Like VB classic, and C++ (ist is a weird issue some times.. idk)

XSS:
syntaxhighlighter/js/clipboard.swf?highlighterId=%22%29%29}catch%28e%29{}alert%281%29;//

Click SWF object and it will execute the alart js example..

Letting you know this in the hope that it will get fixed. Because it is a neat hook to have on a programming board.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.