From 6dcdbed0cf8e0032d3ebccc76eb511d4dc5c9473 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Sat, 4 Feb 2023 16:16:17 +0100 Subject: [PATCH] Format --- README.md | 2 +- index.html | 2 +- parse.js | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) 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); });