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

Custom formats #10

Open
sorashadow opened this issue May 11, 2017 · 3 comments
Open

Custom formats #10

sorashadow opened this issue May 11, 2017 · 3 comments

Comments

@sorashadow
Copy link

Hello there

First of all, thanks for this great little app. It has saved me a lot of formatting time done in Redmine Issues (yeah, I like code neatly formatted XD)

I would like to know if it is possible to add custom languages to the formatting options without having to rebuild the Scintilla... Redmine issues are formatted as Txstyle, and there is no similar highlighting embedded in the app (bash does recognize comments, but that's all).

I tried editing the langs.model.xml, but had no success in making it work.
The code added is as follows (insert beside C and CAML). I adapted the code using this XML file of Notepad++ CustomLang:

        <Language name="textile" ext="txstyle" commentLine="###." commentStart="" commentEnd="">
            <Keywords name="instre1">h5. h4. h3. h2. h1.</Keywords>
            <Keywords name="instre2">*&#x000D;&#x000A;#&#x000D;&#x000A;</Keywords>
            <Keywords name="type1">&lt;pre&gt;&#x000D;&#x000A;&lt;/pre&gt;&#x000D;&#x000A;&lt;pre&#x000D;&#x000A;:http://&#x000D;&#x000A;:https://&#x000D;&#x000A;</Keywords>
        </Language>

Can you help me?

Thanks in advance

@sepich
Copy link
Owner

sepich commented May 15, 2017

Seems like no. Per your code sample 'textile' lexer is needed, and it is not included
https://github.com/sepich/SynNotes/blob/master/SynNotes/Note.cs#L99
Fix seems to be easy, but i'm mac user now - feel free to submit a PR

@sorashadow
Copy link
Author

I'm sorry, but I'm not familiarized with C Sharp...
If I understand correctly, I have to include the "textile" reference in the ScintillaNET.dll resource, with needs to be rebuilt, so it may have this lexer. Is that it?
Based on this, looks like I will have to edit and rebuild: Your code and ScintillaNET are C#, and Scintilla is Python with C++, correct?

@sepich
Copy link
Owner

sepich commented May 16, 2017 via email

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

No branches or pull requests

2 participants