Giter Club home page Giter Club logo

markdown-plus-plus's People

Contributors

alderete-sfdc avatar andrewhu-uw avatar borekon avatar edditoria avatar jonmoon74 avatar misstickles avatar ohar avatar raffaelemorganti avatar ronjouch avatar talllguy avatar theodus2009 avatar thomasleveil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

markdown-plus-plus's Issues

Strikethrough does not work

Surrounding text with tildes should strike out the text. This is not happening, and it is also not highlighted like other syntax.

CSS examples for color highlighting Python code? How to color highlight Python in MarkdownPlusPlus?

Does anyone have a CSS file that can be used in MarkdownPlusPlus to format Python code similar to what "pygments" does for highlighting for some programs like Jupyter Notebook?

I want to color highlight Python code embedded in Markdown text. MarkdownPlusPlus detects the Python code just fine, but it renders it in black and white only.

Is it even possible to color highlight code in markdown using CSS alone? Or is a Javascript script needed to parse and apply the CSS?

(I am pretty ignorant about how to apply CSS outside of a browser. The only stupid question is the one that isn't asked, right? 8^)) )

How would I go about doing Python color highlighting in MarkdownPP?

Can this be done with

 ... 
tags without using javascript library like highlight.js ?

https://highlightjs.readthedocs.io/en/latest/

Here's an example that I found, but it looks like the javascript library has to be embedded in the HTML document directly.

Any guidance (or a solution) folks could provide would be much appreciated.

Notepad++ changed?

I copied the userDefinedLang.xml to the Program Files (x86)/Notepad++ folder and I don't see any syntax highlighting for my .md file. Am I missing something?

Thank you.

Import userDefinedLang-markdown.solarized-light.modern.xml => Fail to Import

Import userDefinedLang-markdown.solarized-light.modern.xml => Fail to Import

Info:
Notepad++ v7.5.9 (32-bit)
Build time : Oct 14 2018 - 15:02:52
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : AutoSave.dll autosave2.dll BetterMultiSelection.dll binhex.dll combine.dll ComparePlugin.dll docMonitor.unicode.dll DoxyIt.dll Explorer.dll GrepBugsPluginNpp.dll HexEditor.dll MarkdownViewerPlusPlus.dll NppColumnSort.dll NPPJSONViewer-win32.dll nppRegEx.dll PluginManager.dll XMLTools.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll LocationNavigate.dll

Fail to persist imports

Not sure if this is a Notepad++ or a Markdown++ issue, but here it goes:

I can successfully import Markdown++ syntax highlighter, it is listed in the combo box of the UDL dialog. However, it is not persisted nor listed among the language menu; thus I cannot apply it and when I restart Notepad++ it has disappeared.

Workaround for me consists in pasting the XML in
%APPDATA%\Notepad++\userDefineLangs
(in my case %APPDATA% = C:\Users\samuelm\AppData\Roaming\ )

Notepad++ v7.6.6 (32-bit)
Build time : Apr 3 2019 - 23:49:50
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : DSpellCheck.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConverter.dll NppExport.dll

Some problems

I've installed /userDefineLang.xml for default_theme in my Notepad++ 6.5.1 and noticed following:

Things that doesn't correspond to given screenshot:

  • ordered lists doesn't work at all (unordered does), numbers are not bolded / styled.

Things, that doesn't work at all:

  • there is no special styling for code blocks (intended by four spaces/tab),
  • bold or italics breaks, when there is a space inside, so in **an exact** only **an part is bold,
  • blockquotes have only their symbol (>) marked in different font, while should have entire blockquoted text printed in different style,
  • numbers are printed in different color, but only, when they'll appear as single ones; in construction like 200-300 second number is not colored as first one.

Most of these styles were working OK or nearly OK in original code, you forked. You wrote, that you fixed it, but it seems that it the very same time, you've removed many features from original code.

Multiple word text formatting does not work for `_`, `__`, `___`, etc.

Multiple word text formatting using underscores instead of asterisks doesn't work properly. This is important to me because I need to write my markdown in a way that is mostly compatible with TWiki syntax, and TWiki and Markdown happen to share __ as a syntax for denoting important text (it's bold for Markdown, and bold with italics for TWiki).

markdown_plus_plus__multi_word_text_formatting_with_underscores_bug

I'm using Notepad++ v7.5.8 and markdown-plus-plus 81a86b4.

Auto match udl scheme with the current theme

Hi there. As the title says, is there any way to auto match the markdown's style with the current theme when you have multiple scheme files inside the userDefineLangs folder? Let me explain better this scenario:

Dark Mode Enabled in settings;
Currently selected theme = Zenburn under Settings --> Style Configurator

Inside the userDefineLangs folder i have those two files (for example):

  • markdown.bespin.dark.udl
  • markdown.zenburn.dark.udl

In this scenario, when i try to open a .md file with notepad, it will always autoselect the markdown.bespin.dark.udl (maybe becouse of alphabetically orders of the theme's name). I can change it back to zenburn dark after the file is loaded under Notepad++ but if i close Notepad++ and reopen another .md file, it auto select the markdown.bespin.dark.udl style again.

For now the only workaround i've found is to have only one style inside the userDefineLangs folder which match the current theme.

Any clue? Thank you!

Black background with black theme

Hello,
I tried classic and modern build to add black theme but I have black background only where there is text.
Is there a specific setting to do more ?
Regards

Pre compiled binaries

I am running W10 x64, and I would like to use this. However, the compile / make process is out of my time reach ... would you post the binaries in release dirs?

Thanks.

Use transparent text background

Instead of having a language description for each theme, I have created only a "dark" and a "light" language files and set the text background to transparent. I suggest you to do the same, it could be far more handy.
How to use transparent background: Banane9/notepadplusplus-twig#14 (comment)
(colorStyle="1" in the UDL file)

* inside **

Hello,

I have seen other issues about * and two words or even ***. I don't if my issue is related but the parsing of the following text fails:

C code is inside *.c files.

Here the result in Notepad++:
double_star

Except this issue, my first impression is good. Thanks a lot!
Bktero

Markdown titles with #, only at beginning of line (optionally with whitespace)?

Is there a possibility in UDL, specifically for markdown, to only style lines that begin with the character # ?

My current problem is that I use the character # inside text and it styles the rest of the line as a title instead of normal text.

Would be an easy regexp, like ^\s# or similar, but I don't think you can use regexp as operator.

For the moment my workaround is setting only the biggest title with single # as "line comment" with "Force at beginning of line".
Might want to include that in the built-in markdown udl here maybe too?

Folding support for nested lists?

I don't know if this is a very recurrent use case, but I personally like to make a plan of my documents before writing them.
To do so, I use nested lists in this kind of fashion:

  • Intro
    • Some kind of context
    • An anecdote maybe
  • Main part
    • A chapter with subparts
      • One subpart
      • Here's another
    • Another chapter
    • One last chapter because I can
  • Conclusion
    • Wow, you have read all of this

It would be nice to be able to fold parts of these. Though I would understand if such feature would mess up the rest. We're not writing a full plugin here, so the possibilities are probably limited.

Links are broken in readme.md

Links to your screenshots as well as the language definition files: userDefineLang.xml are currently broken. Sorry, I'm new to github so hopefully this is the best way to report the issue?

.

.

[Request] One of these guys for the twilight theme

Yeap, feeling like a beggar. That being said, youre about the only solution in town for this longstanding issue with the default markdown lang.

worst part is, for portable users at least (not sure if it affects installed) each time you update youre stuck managing that file or you end up A) overwritten or B) with two markdown lang's.

Headings (#) separated by single line aren't highlighted

Issue

When a file is opened with the Markdown Default Modern style, #-styled headings aren't highlighted properly if they are separated by a single newline.

This means that the following code block:

# Heading 1
## Heading 2
### Heading 3
#### Heading 4

Will render as:

Highlighting missing for headings 2 and 4

Steps to reproduce

  1. Create a new file in Notepad++.
  2. Type 2 or more # styled headings separated by a single newline.
  3. Save as file.md.
  4. Select Language → Markdown.
  5. Right click filename in upper tab bar and select Reload.

System Info

  • OS: Windows 7 Professional - Service Pack 1 (64 bit)
  • Notepad++ Version: Notepad++ v7.5.3 (32 bit)
  • Markdown++ Version: Markdown Default Modern 2.1

Checkboxes: Grey out completed tasks

- [ ] This is an action item.
- [x] This one is completed. I want this line to be gray.

Is it possible to gray out the second line? It would make my TODO-lists much more readable.

I tried to add a keyword - [x] in the UDL-form, but I didn't figure out how to do it right. The space is interpreted as a seperator. Quote marks, parentheses, or-\s[x] don't do the trick either.

Why don't use "Menu Bar -> Language -> Define your language"

Hey There:

I know that just coping the "userDefineLang.xml" to the root flower of notepad plus plus is fine.

But that needs you have administrator permission.

I found another way to use your markdown for notepad++

click Language of menu bar, and click Define your language, then Import button, open the XML file.

1

Then, select the Markdown of User language : at the top of User Defined Language v2.1.x.xx. If need, click Rename button, close the window.

2

and then restart notepad++, Markdown works.

Support for Notepad++ 8.6?

Hi,

I tried applying the markdown udl's but they crash the new notepad++ 8.6; do others have the same problem?

I don't know if this is just an issue for new imports, or also for those that had it already installed.

I copied the xml files from udl directory to C:\Program Files\Notepad++\themes
And selected it from settings > style configurator > selected theme from dropdown (crashes here)

I use 64bit version of Notepad++ 8.6

NPM fails

Good morning,

Not an issue (I think) but just a note that if like myself if you already have a custom language defined (mine was TypeScript) then npm package fails. Only way to install it to get source and then go to

Language -> User Defined Language -> Define your language...

Then import the udl of your choice. Then it works and shows your chosen md themed language.

image

Kind Regards.

Two small syntax highlighting problems

  1. If I use *foo bar* to create italic text or **foo bar** to create bold text, then currently only the first word will be highlighted properly, all other words are NOT highlighted correctly.
  2. If I create a web-link like [text](http://example.com/document.html#some_anchor) then the whole line, starting at the the # character, will appear in bright orange!

Default Language

Is there a way to add this as a default language under Preferences->New Document ?

image

Perhaps a helpful tip to add to installation instructions regarding already opened markdown files.

Markdown files already open in Notepad++ (even the latest version) will not show the newly installed styles until the file itself is closed and reopened. Restarting Notepad++ doesn't update the style shown.

I spent longer than I care to admit on figuring out why the newly installed markdown style definition file (markdown.blackboard.udl.xml) wasn't having an effect on the markdown file I'd opened before installing the style.

I'm using the Windows x64 version of Notepad++ 7.9.1.

Background Color is still white

Is there something I need to do to make the background use the theme color? Currently using obsidian, but this is a problem in all the themes.

image

Killer Relaxation theme for markdown plus plus

If someone wants to add markdown language for [ Killer Relaxation theme] (https://sourceforge.net/p/killerrelaxation/wiki/Home/)

<NotepadPlus>
    <UserLang name="Markdown [Killer Relaxation]" ext="md markdown" udlVersion="2.1">
        <Settings>
            <Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="2" decimalSeparator="0" />
            <Prefix Keywords1="yes" Keywords2="yes" Keywords3="yes" Keywords4="yes" Keywords5="yes" Keywords6="no" Keywords7="no" Keywords8="no" />
        </Settings>
        <KeywordLists>
            <Keywords name="Comments">00# 01 02((EOL)) 03&lt;!-- 04--&gt;</Keywords>
            <Keywords name="Numbers, prefix1"></Keywords>
            <Keywords name="Numbers, prefix2"></Keywords>
            <Keywords name="Numbers, extras1"></Keywords>
            <Keywords name="Numbers, extras2"></Keywords>
            <Keywords name="Numbers, suffix1">.</Keywords>
            <Keywords name="Numbers, suffix2">.</Keywords>
            <Keywords name="Numbers, range"></Keywords>
            <Keywords name="Operators1">@ &lt; &gt; \&lt; \&gt; \\ \` \* \_ \{ \} \[ \] \( \) \# \+ \- \. \! \~ :|: |: :| | \|</Keywords>
            <Keywords name="Operators2">- +</Keywords>
            <Keywords name="Folders in code1, open"></Keywords>
            <Keywords name="Folders in code1, middle"></Keywords>
            <Keywords name="Folders in code1, close"></Keywords>
            <Keywords name="Folders in code2, open"></Keywords>
            <Keywords name="Folders in code2, middle"></Keywords>
            <Keywords name="Folders in code2, close"></Keywords>
            <Keywords name="Folders in comment, open"></Keywords>
            <Keywords name="Folders in comment, middle"></Keywords>
            <Keywords name="Folders in comment, close"></Keywords>
            <Keywords name="Keywords1">http:// (http:// https:// (https:// mailto: (mailto: ftp:// (ftp:// ftps:// (ftps:// (/ /</Keywords>
            <Keywords name="Keywords2">==== ----</Keywords>
            <Keywords name="Keywords3">*** ___</Keywords>
            <Keywords name="Keywords4">** __</Keywords>
            <Keywords name="Keywords5">* _</Keywords>
            <Keywords name="Keywords6"></Keywords>
            <Keywords name="Keywords7"></Keywords>
            <Keywords name="Keywords8"></Keywords>
            <Keywords name="Delimiters">00![ 00[ 01\ 02] 02] 03``` 03` 03~~~ 04\ 05``` 05((EOL `)) 05~~~ 06*** 06___ 07\ 08((EOL ***)) 08((EOL ___)) 09** 09__ 10\ 11((EOL **)) 11((EOL __)) 12* 12_ 13\ 14((EOL *)) 14((EOL _)) 15** 15__ 16\ 17((EOL **)) 17((EOL __)) 18* 18_ 19\ 20((EOL *)) 20((EOL _)) 21 22 23</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="0" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="COMMENTS" styleID="1" fgColor="7D7D7D" bgColor="333333" fontName="" fontStyle="2" nesting="0" />
            <WordsStyle name="LINE COMMENTS" styleID="2" fgColor="93C763" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="NUMBERS" styleID="3" fgColor="FFCC33" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS1" styleID="4" fgColor="EDD6ED" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS2" styleID="5" fgColor="93C763" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS3" styleID="6" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="3" nesting="0" />
            <WordsStyle name="KEYWORDS4" styleID="7" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="KEYWORDS5" styleID="8" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="2" nesting="0" />
            <WordsStyle name="KEYWORDS6" styleID="9" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS7" styleID="10" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="KEYWORDS8" styleID="11" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="OPERATORS" styleID="12" fgColor="DFC47D" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="FOLDER IN CODE1" styleID="13" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN CODE2" styleID="14" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="FOLDER IN COMMENT" styleID="15" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS1" styleID="16" fgColor="EDD6ED" bgColor="333333" fontName="" fontStyle="2" nesting="0" />
            <WordsStyle name="DELIMITERS2" styleID="17" fgColor="999999" bgColor="333333" fontName="Consolas" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS3" styleID="18" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="3" nesting="0" />
            <WordsStyle name="DELIMITERS4" styleID="19" fgColor="E3CEAB" bgColor="333333" fontName="" fontStyle="1" nesting="0" />
            <WordsStyle name="DELIMITERS5" styleID="20" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS6" styleID="21" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS7" styleID="22" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
            <WordsStyle name="DELIMITERS8" styleID="23" fgColor="E5E5E5" bgColor="333333" fontName="" fontStyle="0" nesting="0" />
        </Styles>
    </UserLang>
</NotepadPlus>

Any way to keep HTML and CSS highlighting?

I use CSS quite a bit, to tweak elements I have given an ID and full support for this is baked into standard Markdown when it appears on a new line with a blank line separating it from the markdown. It would be nice if we could keep that highlighting when a line starts with < or is contained between tags (such as between <Style> and </Style>)

Double tick code segment's not highlighted

If your code will have a tick in it, you can surround it with double tick as valid, basic Markdown, this breaks highlighting.

An example of a non-escaped ` in a code block working just fine because this is in double ticks

*** and some useful link protocols missing

Thanks for giving us some highlighting code that works better than Thom Smits’ for Markdown. As an improvement, I’d like to see the following added, if anyhow feasible:

  • Support for _bolditalics_ and _bolditalics_
  • More useful link protocols like ftp:, mailto:, callto: and tel:

I have sent you the version I adapted for myself via email. Feel free to use it however you like.

functionList.xml for markdown files

This is a feature request. It would be useful if the functionList.xml is created for markdown files. If headings is regarded as functions then it would be easy to navigate between them.

Does it support table?

I wrote following content, and there was no table represent. Have I done something wrong or it just doesn't support that function?

one two three
1 2 3

More clarifying instructions

Hi, your instructions tell us to copy the xml from <udl/> to <userDefineLangs/>.

Would be very helpful if you also said that this folder is found in the %APPPDATA% folder. That was not obvious to me and I was confused when I couldn't find the folder in Program Files/Notepad++.

Thanks!

Remove?

I imported the XML and I now have a user defined 'Markdown' in the Language tab. The problem is that the colors are all messed up. I think I need the 'default' as the Zen shows highlight for each line and then reverts back to the highlightling that is default (white background). Anyway it is very hard to look at. What I would like to know is how do I remove the import and replace it with the 'default'.

Thank you.

Multiple spaces at end of line should be highlighted

A line ending with two or more spaces is a line break in markdown, so this should be made visible in some way.

I would suggest changing the background color for any number of spaces that come directly before the line ending.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.