Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

autocompletion xml #234

Closed
raziEiL opened this issue Sep 11, 2018 · 6 comments
Closed

autocompletion xml #234

raziEiL opened this issue Sep 11, 2018 · 6 comments

Comments

@raziEiL
Copy link

raziEiL commented Sep 11, 2018

Description of the Issue

I'm using autocompletion xml file to hint docs. Here is an example of how it should looks
screenshot_13 So, everything looks very elegant and readable

3P in action
screenshot_14
Well, 3P plugin removes all new lines and spaces from description attribute. It looks terrible. Can you fix it please?

Debug Information

Notepad++ v7.5.8 (64-bit)
Build time : Jul 23 2018 - 02:06:36
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : ON
Local Conf mode : OFF
OS : Windows 7 (64-bit)
Plugins : 3P.dll CodeAlignmentNpp.dll ComparePlugin.dll MarkdownViewerPlusPlus.dll NppExec.dll NPPJSONViewer.dll PluginManager.dll DSpellCheck.dll mimeTools.dll NppConverter.dll

XML

        <KeyWord name="AddAdmGroupCmdOverride" func="yes">
            <Overload retVal="native void" descr="
Params:
    id                      Group id.
    name                    String containing command name (case sensitive).
    type                    Override type (specific command or group).
    rule                    Override allow/deny setting.
Notes:
    Adds a group-specific override type.">
                <Param name="GroupId id"/>
                <Param name="const char[] name"/>
                <Param name="OverrideType type"/>
                <Param name="OverrideRule rule"/>
            </Overload>
        </KeyWord>
@jcaillon
Copy link
Owner

jcaillon commented Sep 12, 2018

Hello,

Glad to see someone using this feature! Just out of curiosity, do you use 3P solely for auto-completing other languages ?

As for your problem, the reason is dead simple, at the moment the tooltip displays html, not raw text. One slight problem : the use of spaces to align param and description. To reproduce that behavior, i need a monospaced font for the description in the tooltip... which might be quite ugly.

Maybe new lines would be enough, what do you think?

br

@raziEiL
Copy link
Author

raziEiL commented Sep 12, 2018

Hi, currently I'm programming on SourcePawn language only. I makes Npp docs for programmers who write mod for games like CS:GO, L4D, Half-Life...it's a realy big community. But I faced with the problem.

Notepad++ Issues:
notepad-plus-plus/notepad-plus-plus#4833
notepad-plus-plus/notepad-plus-plus#3997

These issues causes a lot of inconvenience. Yesterday I discovered 3P plugin that fixes all autocomplete bugs. Thanks!

New lines would be a good start to solve this problem. If you add option to select font or any other stuff that make tooltip look like Notepad hint it would be also great.

@jcaillon
Copy link
Owner

Oh I see. Yes the default notepad++ autocompletion is... pretty garbage in my opinion (this is actually the autocompletion of the scintilla component).

I'll try to fix it this week-end, it shouldn't be a heavy fix. I will post the link to a build artifact so you can download the fixed version and try it right away.

br

jcaillon added a commit that referenced this issue Sep 28, 2018
@jcaillon
Copy link
Owner

Not a perfect solution, but we at least get the new lines.
I'll think of a better. In the meantime, you can try the new version here :

artifact build
artifact build x64

@raziEiL
Copy link
Author

raziEiL commented Sep 28, 2018

It look almost the same. Thank you for update!
screenshot_5

@jcaillon
Copy link
Owner

You are welcome!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants