Use details
with pre
and code
:
<details><summary>Insert summary here
</summary><pre><code>
A multi-line
Log message
Here
</code></pre></details>
/* Draws a bitmap at the specified location | |
** x is horizontal distance from the left of the screen to the left of the image | |
** y is virtical distance from the top of the screen to the top of the image | |
** bitmap is a pointer to the start of the image data | |
** w is the width in pixels of the image | |
** h is the height in pixels of the image | |
* | |
** remarks: the image data contains pixels represented with a single bit. 1 representing white pixels. | |
** 8 pixels are expected per byte and the data is interpreted horizontally (each byte represents | |
** 8 horizontal pixels) thus the width of the image must be a multiple of 8. |
#brailleViewer.py | |
#A part of NonVisual Desktop Access (NVDA) | |
#Copyright (C) 2017 NV Access Limited | |
#This file is covered by the GNU General Public License. | |
#See the file COPYING for more details. | |
import wx | |
import gui | |
import braille |
import bisect | |
import unicodeScriptData | |
scriptCode = unicodeScriptData.scriptRanges | |
unicodeScriptRangeEnd = [ k[1] for k in scriptCode] | |
def withBisect(chr): | |
# Based on the following assumptions: |
withSetProcessDpiAware = False | |
import ctypes | |
if withSetProcessDpiAware: | |
ctypes.windll.user32.SetProcessDPIAware() | |
import wx | |
from wx.lib.mixins.listctrl import CheckListCtrlMixin | |
class CheckListCtrl(wx.ListCtrl, CheckListCtrlMixin): |
myID_1 = "foo" | |
myID_2 = "bar" | |
underIndentDict = { | |
myID_1: "hello", # noqa: ET122 # Unexpected number of tabs at start of expression line (expected 1, got 0) | |
myID_2: "world", # noqa: ET122 # Unexpected number of tabs at start of expression line (expected 1, got 0) | |
} | |
Use details
with pre
and code
:
<details><summary>Insert summary here
</summary><pre><code>
A multi-line
Log message
Here
</code></pre></details>