Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add markdown-codeblock extension #15290

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

lacherogwu
Copy link
Contributor

@lacherogwu lacherogwu commented Nov 9, 2024

Description

Markdown Codeblock

Wraps your code in a Markdown code block.

This works well when chatting with AI, as it provides more context for the code block.

Recommended Hotkey

⌘;

How to Use

  1. copy the code you want to wrap in a codeblock and run the command
  2. select the language you want to use for the codeblock and press enter

markdown-codeblock-2

Example

I have the following code in my clipboard:

package main

import "fmt"

func main() {
    fmt.Println("Hello, World!")
}

I run the command and select go as the language for the codeblock:

and the codeblock is inserted in the markdown file:

```go
package main

import "fmt"

func main() {
    fmt.Println("Hello, World!")
}
```

Credits

Thanks for icons from vscode-material-icon-theme

Screencast

markdown-codeblock-1

Checklist

@raycastbot
Copy link
Collaborator

Congratulations on your new Raycast extension! 🚀

You can expect an initial review within five business days.

Once the PR is approved and merged, the extension will be available on our Store.

@raycastbot raycastbot added the new extension Label for PRs with new extensions label Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new extension Label for PRs with new extensions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants