Stephen G 0 Posted June 1, 2021 Share Posted June 1, 2021 The keystroke I usually use for formatting pasted (and selected) text as a code block seems to have been removed again. I'm using version 10.13.4. Can somebody please clarify what has happened to the code block formatting functionality? Link to comment
Level 5 PinkElephant 8,773 Posted June 2, 2021 Level 5 Share Posted June 2, 2021 You first need to insert a code block shift-cmd-B. Then insert the copied text block into the new code block adapting it to the new format shift-cmd-V Link to comment
Stephen G 0 Posted June 2, 2021 Author Share Posted June 2, 2021 That keystroke no longer works for me, and I can' find anything in the menus to format as a code block. Link to comment
Mike P 2,964 Posted June 2, 2021 Share Posted June 2, 2021 1 hour ago, Stephen G said: That keystroke no longer works for me, and I can' find anything in the menus to format as a code block. If you look in the keyboard shortcuts (ctrl + / (on Windows)) or help -> keyboard shortcuts you should find the shortcut for insert code block (ctrl + shift + L on Windows). If you highlight the text and then press the shortcut it formats the text as code. Should be the same for Mac but I obviously can't guarantee that. Link to comment
Level 5 PinkElephant 8,773 Posted June 2, 2021 Level 5 Share Posted June 2, 2021 EN Mac v10.14.7: - Select your text you want to format as code - click on the blue + button top left - click on code block This will convert the selected text into code format. Shortcut is not working for conversion, just to insert a new, empty code block. 1 Link to comment
obromios 1 Posted March 31, 2022 Share Posted March 31, 2022 cmd + / on the Mac does give all shortcuts. The one for the insert code block is ^+CMD+B (where ^ is control key and cmd is command key) Link to comment
Level 5 PinkElephant 8,773 Posted March 31, 2022 Level 5 Share Posted March 31, 2022 Yes, this is the shortcut to insert a code block. But the question that was posted was to convert an existing text into a code block. This AFAIK does not work by a keyboard shortcut. Link to comment
Evernote Expert agsteele 3,059 Posted March 31, 2022 Evernote Expert Share Posted March 31, 2022 In Windows at least placing a back tick character before and after some text and pressing space or enter will convert that into a code block as inline code. But it doesn't work across a paragraph break and quite possibly there are other limitations. But at least a single block of text could be converted after the event with the single back ticks. Likewise three back ticks typed before any text starts a code block. 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now