Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: ollydbg on March 20, 2024, 05:15:26 am

Title: new idea: smart copy of the code snippet with [code] tag around
Post by: ollydbg on March 20, 2024, 05:15:26 am
Under my web browser, I have an addon named: Link Text and Location Copier (https://evilnickname.github.io/link-text-location-copier/)

With this add on, I can copy the link with many kinds of format, such as: wikipedia link format, or makdown link format or phpBB link format.

I think we can have a similar function, when you copy a piece of the code in the editor, we can got the result like:

Code
In the source file: xxxx/yyyy.cpp
code tag begin

The code content.

code tag end

Any ideas? Or maybe we already have this feature?
Title: Re: new idea: smart copy of the code snippet with [code] tag around
Post by: ollydbg on April 12, 2024, 07:17:40 am
That's a great idea! There isn't a universally built-in feature for copying code with context like your browser extension does for links. Exploring these options should help you achieve the desired code copy functionality in your editor.

Are you an AI bot?

I will report it to moderator.