跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[分享创造] ASCII 代码截图?≽^•⩊•^≼

发表于

313468263-ce3a387b-61a5-42ba-8f71-1b4949

作为颜控,我做了一个更漂亮的代码截图插件 CodeSnap.nvim,现在发布 v1.5.0 ,它能做一些看起来比较酷的事情,截一张 ASCII 的 “代码截图”。

举个例子:

╭───────────────────────────────────────────────────────────╮
│ codesnap.nvim/lua/codesnap/init.lua                       │
│───────────────────────────────────────────────────────────│
│ 1 local static = require("codesnap.static")               │
│ 2 local visual_utils = require("codesnap.utils.visual")   │
│ 3 local table_utils = require("codesnap.utils.table")     │
│ 4 local string_utils = require("codesnap.utils.string")   │
│ 5 local config_module = require("codesnap.config")        │
│ 6 local highlight_module = require("codesnap.highlight")  │
╰───────────────────────────────────────────────────────────╯

说是 “代码截图” 但它其实是一堆字符拼接的 “图片”,但是它仍然很有用,它包含了代码所在的位置,行号,让被分享的人马上能定位到具体的位置,甚至如果你用 Markdown ,它也能享受 Markdown parser 带来的代码高亮。

所以,快来分享你的第一张 ASCII 代码截图吧!(。˃ ᵕ ˂ )⸝♡(

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.