Skip to content

vintagedaddyo/MyBB_Plugin-prism_highlight_code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MyBB_Plugin-prism_highlight_code

Description: Code and PHP codeblocks syntax highlighting for MyBB using a combo of PrismJS (for code syntax highlighting / styling) and HighlightJS(for detecting code Langs).

  • MyBB: Prism Highlight Code
  • Authors: vintagedaddyo & ic_myXMB
  • MyBB Version: 1.8.x (was created at time using 1.8.31 & now re-visited using 1.8.39)
  • Current Plugin Version: 1.0.5
  • Langs: English, EnglishGB, Espanol, French, Italiano, German
  • Current HighlightJS version: v11.7.0
  • Current PrismJS version: v1.29.0

INSTALL INSTRUCTIONS:

  1. Upload the contents of the "Upload" folder to your forum root directory
  2. Visit ACP settings and choose to enable or disable plugin
  3. Visit ACP settings and choose what codeblock style you desire (8 presently)
  4. Have Fun!

NOTE:

  • Lang files are provided as is as a base an are not perfect and while these are done and will work, as stated they are not perfect, and while I provide these as a base and for free, please note that I have had cry-babies before create drama because of lang files (primarily the main reason I left the MyBB Community years ago, mind you). Ok, now that that is stated, rather than provide me with better translations, folks have caused me grief in the past, so on that note those types of folks can kiss my arse! Ok, so now clearly stating that, no worries, if you find any such that may need better translations, then kindly by all means please provide them for me as that is a much better approach that will go over well with me and upon such and as such I will happily make those changes. Just saying. Food for thought! ;)

TO DO:

  • Perhaps eventually update highlightJS and prismJS to newest highlightJS and prismJS versions if and or when my free time allows (I do not and have not really used MyBB much in years, so, umm, yeah, just re-vsiting for a sec, lol)
  • Perhaps add any further prism thems if avail, and or else perhaps create some more and add them, if an or whenever free time and or any further desire allows

CHANGELOG:

  • Version 1.0.5

    • changed plugin name and as such all files and directories edited to reflect name change
    • changed name plugin now added to my github in a repository (previous version(s) were in a diff repo hosted by the partner I worked with & created such with & for while teaching them)
  • Version 1.0.4

    • added collapse / expand functionality and styling to the codeblock since prism was displaying codeblock full. (To accomplish such opted to to use one of the variants of such styling with css lang translations shared in a past tutorial by vintagedaddyo)
  • Version 1.0.3

    • update current HighlightJS version from "v11.6.0" to: v11.7.0
    • minor cleanup / edits
    • changed existing themes .css files to .min.css files
  • Version 1.0.2

    • minor code edits (gid and group[gid] related)
    • added plugin page settings link
  • Version 1.0.1

    • Localization support (currently: English, EnglishGB, Espanol, French, Italiano, German)
    • Added 8 styles from the Prism JS site
    • Contains Ability to select desired codeblock styles (8 currently)
    • Contains ability to enable or disable the plugin
    • Contains localization support
    • Contains ability to detect the code language by using Highlight JS to do so and then Style and Highlight via Prism JS
    • Wraps all code tags in pre tags via JS
    • Contains ability to Select / Copy code on each codeblock
    • Contains Latest / Current HighlightJS / PrismJS version
  • Version 1.0.0

    • Initial release

About

For MyBB: Code and PHP codeblocks syntax highlighting for MyBB using a combo of PrismJS (for code syntax highlighting / styling) and HighlightJS(for detecting code Langs).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors