You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1410,7 +1411,12 @@ function settings_page() { ?>
1410
1411
<td>
1411
1412
<fieldset>
1412
1413
<legend class="hidden"><?phpesc_html_e( 'Load All Brushes', 'syntaxhighlighter' ); ?></legend>
1413
-
<label for="syntaxhighlighter-loadallbrushes"><input name="syntaxhighlighter_settings[loadallbrushes]" type="checkbox" id="syntaxhighlighter-loadallbrushes" value="1" <?phpchecked( $this->settings['loadallbrushes'], 1 ); ?> /> <?phpwp_kses( _e( 'Always load all language files (for directly using <code><pre></code> tags rather than shortcodes). If left unchecked (default), then language files will only be loaded when needed. If unsure, leave this box unchecked.', 'syntaxhighlighter' ), array( 'code' => array(), 'br' => array() ) ); ?></label>
echowp_kses( __( 'Always load all language files (for directly using <code><pre></code> tags rather than shortcodes). If left unchecked (default), then language files will only be loaded when needed. If unsure, leave this box unchecked.', 'syntaxhighlighter' ), array( 'code' => array(), 'br' => array() ) );
1418
+
?>
1419
+
</label>
1414
1420
</fieldset>
1415
1421
</td>
1416
1422
</tr>
@@ -1546,20 +1552,200 @@ function settings_page() { ?>
1546
1552
<p><?phpprintf( __( 'These are the parameters you can pass to the shortcode and what they do. For the booleans (i.e. on/off), pass %1$s/%2$s or %3$s/%4$s.', 'syntaxhighlighter' ), '<code>true</code>', '<code>1</code>', '<code>false</code>', '<code>0</code>' ); ?></p>
1547
1553
1548
1554
<ul class="ul-disc">
1549
-
<li><?phpprintf( esc_html_x( '%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href="%3$s">Click here</a> for a list of valid tags (under "aliases").', 'language parameter', 'syntaxhighlighter' ), '<code>lang</code>', '<code>language</code>', 'http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/' ); ?></li>
<li><?phpprintf( esc_html_x( '%s — Add an additional CSS class to the code box.', 'classname parameter', 'syntaxhighlighter' ), '<code>classname</code>' ); ?></li>
1552
-
<li><?phpprintf( esc_html_x( '%s — Toggle collapsing the code box by default, requiring a click to expand it. Good for large code posts.', 'collapse parameter', 'syntaxhighlighter' ), '<code>collapse</code>' ); ?></li>
1553
-
<li><?phpprintf( esc_html_x( '%s — An interger specifying what number the first line should be (for the line numbering).', 'firstline parameter', 'syntaxhighlighter' ), '<code>firstline</code>' ); ?></li>
1554
-
<li><?phpprintf( esc_html_x( '%s — Toggle the left-side line numbering.', 'gutter parameter', 'syntaxhighlighter' ), '<code>gutter</code>' ); ?></li>
1555
-
<li><?phpprintf( esc_html_x( '%1$s — A comma-separated list of line numbers to highlight. You can also specify a range. Example: %2$s', 'highlight parameter', 'syntaxhighlighter' ), '<code>highlight</code>', '<code>2,5-10,12</code>' ); ?></li>
1556
-
<li><?phpprintf( esc_html_x( "%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example. This only works with certain languages.", 'htmlscript parameter', 'syntaxhighlighter' ), '<code>htmlscript</code>' ); ?></li>
1557
-
<li><?phpprintf( esc_html_x( '%s — Toggle light mode which disables the gutter and toolbar all at once.', 'light parameter', 'syntaxhighlighter' ), '<code>light</code>' ); ?></li>
1558
-
<li><?phpprintf( esc_html_x( '%s — Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding).', 'padlinenumbers parameter', 'syntaxhighlighter' ), '<code>padlinenumbers</code>' ); ?></li>
1559
-
<li><?phpprintf( esc_html_x( '%1$s (v3 only) — Sets some text to show up before the code. Very useful when combined with the %2$s parameter.', 'title parameter', 'syntaxhighlighter' ), '<code>title</code>', '<code>collapse</code>' ); ?></li>
1560
-
<li><?phpprintf( esc_html_x( '%s — Toggle the toolbar (buttons in v2, the about question mark in v3)', 'toolbar parameter', 'syntaxhighlighter' ), '<code>toolbar</code>' ); ?></li>
// translators: %1$s Lang parameter; %2$s Language parameter; %3$s Valid tags link.
1560
+
_x(
1561
+
'%1$s or %2$s — The language syntax to highlight with. You can alternately just use that as the tag, such as <code>[php]code[/php]</code>. <a href="%3$s">Click here</a> for a list of valid tags (under "aliases").',
'%1$s — A comma-separated list of line numbers to highlight. You can also specify a range. Example: %2$s',
1649
+
'highlight parameter',
1650
+
'syntaxhighlighter'
1651
+
),
1652
+
'<code>highlight</code>',
1653
+
'<code>2,5-10,12</code>'
1654
+
);
1655
+
?>
1656
+
</li>
1657
+
<li>
1658
+
<?php
1659
+
printf(
1660
+
// translators: %s Htmlscript parameter.
1661
+
esc_html_x(
1662
+
"%s — Toggle highlighting any extra HTML/XML. Good for when you're mixing HTML/XML with another language, such as having PHP inside an HTML web page. The above preview has it enabled for example. This only works with certain languages.",
1663
+
'htmlscript parameter',
1664
+
'syntaxhighlighter'
1665
+
),
1666
+
'<code>htmlscript</code>'
1667
+
);
1668
+
?>
1669
+
</li>
1670
+
<li>
1671
+
<?php
1672
+
printf(
1673
+
// translators: %s Light parameter.
1674
+
esc_html_x(
1675
+
'%s — Toggle light mode which disables the gutter and toolbar all at once.',
1676
+
'light parameter',
1677
+
'syntaxhighlighter'
1678
+
),
1679
+
'<code>light</code>'
1680
+
);
1681
+
?>
1682
+
</li>
1683
+
<li>
1684
+
<?php
1685
+
printf(
1686
+
// translators: %s Padlinenumbers parameter.
1687
+
esc_html_x(
1688
+
'%s — Controls line number padding. Valid values are <code>false</code> (no padding), <code>true</code> (automatic padding), or an integer (forced padding).',
1689
+
'padlinenumbers parameter',
1690
+
'syntaxhighlighter'
1691
+
),
1692
+
'<code>padlinenumbers</code>'
1693
+
);
1694
+
?>
1695
+
</li>
1696
+
<li>
1697
+
<?php
1698
+
printf(
1699
+
// translators: %1$s Title parameter; %2$s Collapse parameter.
1700
+
esc_html_x(
1701
+
'%1$s (v3 only) — Sets some text to show up before the code. Very useful when combined with the %2$s parameter.',
1702
+
'title parameter',
1703
+
'syntaxhighlighter'
1704
+
),
1705
+
'<code>title</code>',
1706
+
'<code>collapse</code>'
1707
+
);
1708
+
?>
1709
+
</li>
1710
+
<li>
1711
+
<?php
1712
+
printf(
1713
+
// translators: %s Toolbar parameter.
1714
+
esc_html_x(
1715
+
'%s — Toggle the toolbar (buttons in v2, the about question mark in v3)',
1716
+
'toolbar parameter',
1717
+
'syntaxhighlighter'
1718
+
),
1719
+
'<code>toolbar</code>'
1720
+
);
1721
+
?>
1722
+
</li>
1723
+
<li>
1724
+
<?php
1725
+
printf(
1726
+
// translators: %s Wraplines parameter.
1727
+
esc_html_x(
1728
+
'%s (v2 only) — Toggle line wrapping.',
1729
+
'wraplines parameter',
1730
+
'syntaxhighlighter'
1731
+
),
1732
+
'<code>wraplines</code>'
1733
+
);
1734
+
?>
1735
+
</li>
1736
+
<li>
1737
+
<?php
1738
+
printf(
1739
+
// translators: %s Quickcode parameter.
1740
+
esc_html_x(
1741
+
'%s — Enable edit mode on double click.',
1742
+
'quickcode parameter',
1743
+
'syntaxhighlighter'
1744
+
),
1745
+
'<code>quickcode</code>'
1746
+
);
1747
+
?>
1748
+
</li>
1563
1749
</ul>
1564
1750
1565
1751
<p><?phpesc_html_e( 'Some example shortcodes:', 'syntaxhighlighter' ); ?></p>
0 commit comments