If the Google Code Prettifier (or JQuery Syntax Highlighter) is being used in the same page as the JQuery DatePicker, neither will work properly. Why is this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Because they both monkey patch a now method onto the native Date object!
Prettify does this:
DatePicker does this:
So Prettify’s returns an int representation of the Date (so that it can add on some ms) while DatePicker returns a Date.
(IMO this kind of thing is outrageous in two such commonly-used libraries.)