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

[New Feature] Enable ChatGPT Markdown style - including code #87

Open
hienstorfer opened this issue Jul 10, 2024 · 2 comments
Open

[New Feature] Enable ChatGPT Markdown style - including code #87

hienstorfer opened this issue Jul 10, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@hienstorfer
Copy link

hienstorfer commented Jul 10, 2024

Hello,
what a lot of people might want to use is ChatGPT markdown.
At the end of a ChatGPT response, you can copy everything as markdown into the Clipboard.
This is also including code snippets in various languages.
As a first improvment, the Markdown itself would be cool to have - for all these non programmers out there.

==Example GPT result== how to copy
image

==Example GPT result==

[python]

Tuples and sets are both built-in data types in Python, but they have different properties and use cases. Here’s a detailed comparison:

Tuple

  1. Ordered: Tuples maintain the order of elements. The order in which elements are added to a tuple is preserved.
  2. Immutable: Once a tuple is created, its elements cannot be changed, added, or removed. This immutability makes tuples hashable, allowing them to be used as keys in dictionaries and elements of sets.
  3. Duplicates Allowed: Tuples can contain duplicate elements.
  4. Indexable: Elements in a tuple can be accessed using indices.
  5. Syntax: Tuples are created using parentheses ().

Example of a Tuple

my_tuple = (1, 2, 3, 4, 2)
print(my_tuple[0])  # Output: 1
print(my_tuple)     # Output: (1, 2, 3, 4, 2)

Set

  1. Unordered: Sets do not maintain any order of elements. The order of elements is not preserved and may change.
  2. Mutable: Sets are mutable; you can add or remove elements from a set. However, the elements themselves must be immutable.
  3. No Duplicates: Sets do not allow duplicate elements. Each element in a set is unique.
  4. Not Indexable: Since sets are unordered, you cannot access elements using indices.
  5. Syntax: Sets are created using curly braces {} or the set() function.

Example of a Set

my_set = {1, 2, 3, 4, 2}
print(my_set)  # Output: {1, 2, 3, 4}
my_set.add(5)
print(my_set)  # Output: {1, 2, 3, 4, 5}

Key Differences

  1. Order: Tuples maintain order; sets do not.
  2. Mutability: Tuples are immutable; sets are mutable.
  3. Duplicates: Tuples allow duplicates; sets do not.
  4. Indexing: Tuples can be indexed; sets cannot.
  5. Use Cases: Tuples are often used for heterogeneous data (different data types) and fixed collections of items. Sets are used for membership testing, removing duplicates from a sequence, and mathematical operations like union, intersection, and difference.

Understanding these differences helps in choosing the appropriate data type based on the requirements of the task at hand.

@gregorias gregorias added the enhancement New feature or request label Jul 10, 2024
@gregorias
Copy link
Owner

Hi Phillip,

I recently stopped my ChatGPT description. Could I ask you to provide the HTML code of an Anki field that results from such a copy?

@otrai
Copy link

otrai commented Oct 14, 2024

This is what I get when I press the copy button:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants