diff --git a/README.md b/README.md index 0c8b891..5c18a81 100644 --- a/README.md +++ b/README.md @@ -390,7 +390,7 @@ import re Format ------ -```bash +```perl = f'{}, {}' # Curly brackets can also contain expressions. = '{}, {}'.format(, ) # Or: '{0}, {a}'.format(, a=) = '%s, %s' % (, ) # Redundant and inferior C-style formatting. diff --git a/index.html b/index.html index 48d30c7..37e9dc9 100644 --- a/index.html +++ b/index.html @@ -364,7 +364,7 @@ Point(x=1, y=2
  • As shown above, it restricts all special sequence matches to the first 128 characters and prevents '\s' from accepting '[\x1c-\x1f]' (the so-called separator characters).
  • Use a capital letter for negation (all non-ASCII characters will be matched when used in combination with ASCII flag).
  • -

    #Format

    <str> = f'{<el_1>}, {<el_2>}'            # Curly brackets can also contain expressions.
    +

    #Format

    <str> = f'{<el_1>}, {<el_2>}'            # Curly brackets can also contain expressions.
     <str> = '{}, {}'.format(<el_1>, <el_2>)  # Or: '{0}, {a}'.format(<el_1>, a=<el_2>)
     <str> = '%s, %s' % (<el_1>, <el_2>)      # Redundant and inferior C-style formatting.
     
    diff --git a/parse.js b/parse.js index 080d8d4..9d8cef3 100755 --- a/parse.js +++ b/parse.js @@ -713,6 +713,7 @@ function updateDiagrams() { function highlightCode() { setApaches(['', '', '
    ', '', '', '']); $('code').not('.python').not('.text').not('.bash').not('.apache').addClass('python'); + $('code.perl').removeClass().addClass('python'); $('code').each(function(index) { hljs.highlightBlock(this); });