• I’d like to use this plugin to automatic highlight all pre in my posts. How can I do it? I what a particular language to be used if no lang propertie is set.

Viewing 1 replies (of 1 total)
  • Plugin Author ioquatix

    (@ioquatix)

    I see, currently this feature is not supported, because it is designed to be compatible with other plugins. However, if you simply want to highlight all the pre elements you can add the following code:

    jQuery(function($){$('pre').syntax({brush: 'c', replace: true});});

    This will highlight all pre elements using the C language brush.

    Let me know if this helps, and if you have any more questions.

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: jQuery.Syntax] Default highlight for pre’ is closed to new replies.