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

inline code syntax highlighting #1566

Open
1 task done
aabbccddeeffggj opened this issue Aug 29, 2024 · 3 comments
Open
1 task done

inline code syntax highlighting #1566

aabbccddeeffggj opened this issue Aug 29, 2024 · 3 comments
Labels
feature Issues related to feature proposals. Please attach a module.

Comments

@aabbccddeeffggj
Copy link

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

1 - On a .norg file:

- example of initializing a variable:
@inline(cpp) int two{2};

concealing...

• example of initializing a variable
int two{2};

2 - Being able to define aliases for these statements would be interesting:

/alias("@inline(cpp)", "cpp")
- example of initializing a variable
cpp int two{2};

concealing...

• example of initializing a variable
int two{2};

Help

No

Implementation help

No response

@aabbccddeeffggj aabbccddeeffggj added the feature Issues related to feature proposals. Please attach a module. label Aug 29, 2024
@github-project-automation github-project-automation bot moved this to added-updated-reopened in sorting neorg issue tracker Aug 29, 2024
@max397574
Copy link
Contributor

perhaps this should be opened in the specs repository
https://github.com/nvim-neorg/norg-specs

@aabbccddeeffggj
Copy link
Author

I opened it there, thanks.

@aabbccddeeffggj
Copy link
Author

aabbccddeeffggj commented Sep 1, 2024

The norg-spec does have this feature (Attached Modifier Extensions), but it doesn't seem to be available in neorg.

|example
`print("This is some python")`(lang:python) <- The lang:python attribute highlights the text as python
*some green and bold text!*(color:green)    <- some green and bold text

{* Link location}[this is an important link](important|color:red) <- Highlights the link as big,
                                                                     bold (important) and red.
|end

Previously it was not supported due to performance reasons, now I'm not sure how's the state of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issues related to feature proposals. Please attach a module.
Projects
None yet
Development

No branches or pull requests

2 participants