Code Monkey home page Code Monkey logo

qscintilla_docs's People

Contributors

matkuki 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

Watchers

 avatar  avatar  avatar  avatar

qscintilla_docs's Issues

How to undo setText?

@matkuki Hi again! How you doing? Sorry to ping you again... reason being because you're one of the guys I'm aware of that knows quite a lot of QScintilla... so maybe you've got some ideas for this question?

Thanks in advance ;)

Formatting display of control characters.

I am working on a simple editor using QScintilla and PyQt5. I can replace certain characters using SCI_SETREPRESENTATION (for e.g. I can show '-' instead of a space). However, all control characters are rendered inverted on a black background. I have read in the docs that the function SCI_SETREPRESENTATIONAPPEARANCE can be used to control the appearance but this function is not implemented in the port.

Is there an alternate method to format the display of control characters using QScintilla?

How to set color to margin line numbers?

First of all, let me tell you I've read the whole https://qscintilla.com/margins/ section from the docs but I still don't understand why I'm not able
to make proper coloring in this issue Different colors to SublimeText.

Right now I'm hardcoding it to force the same margin color than Sublime using this statements but that's been ignored for some reason I don't understand.

Of course, the above is just a test and the margins should eventually be used from the .tmTheme, like here

Hopefully you can bring some light to this as I've tried to figure it out for a while already ;)

Adding SublimeText features into QScintilla

@matkuki Hi! nice to meet you, I've seen you're the author of qscintilla.com and let me tell you that's a really nice website to learn more about QScintilla. Qscintilla docs aren't very intuitive so a simple website like yours is definitely really helpful.

That said, reason I was contacting you is because I'm trying to solve some questions about QScintilla... I'd like to create a little qscintilla editor with some features borrowed from Sublime Text (commenting, bookmarks, folding, multiselection, find_all_under) but logic behind those is still not clear to me, recently I've been opening some question on Stackoverflow about some of them, for instance:

Considering you're quite the expert using QScintilla, let me ask you, any idea about these subjects? Asking you cos it seems Qscintilla isn't very popular on the Stackoverflow community, so I've noticed asking there I won't be getting too much help :/

Thanks in advance.
Bruno.

No folding in example

In your example qscintilla_docs/examples/custom_lexer_basic_with_folding.py there is no folding at all.

if No define QT_NO_ACCESSIBILITY , Switching line formats is too slow

what is the QT_NO_ACCESSIBILITY ,What is its function ?

I found a problem,is a bug . when i change a end-of-line of doc from windows to linux format,too slow !

I am in qt5.12 。The doc size is 480k, it took at least three minutes。I debug found if define this QT_NO_ACCESSIBILITY, The speed picked up immediately。

void QsciScintillaQt::NotifyParent(SCNotification scn) --- the code which define with QT_NO_ACCESSIBILITY,tow slow .

Can author give some advice?

Wrong PNG in one of the examples on the website

At this page (https://qscintilla.com/text-wrapping/) example for startFlag.WrapFlagInMargin must use wrap_visual_flags_3.png rather than wrap_visual_flags_0.png. Your PDF seems to have no such issue, and most likely it exists only on the website.

P.S. Thank you both for your work. Both docs and website are extremely useful considering how cryptic Scintillla and Qsci are.

Add Macros

It would be really nice if you add macros to the documentation.

Here a description how they work:
First you need to create a macro with the QsciMacro Class. It takes QsciScintilla as argument.
macro = QsciMacro(self.editor)

You can start recording macros with startRecording(). It doesn't need to be in a thread or something else.
macro.startRecording()

You can stop recording with endRecording().
macro.stopRecording()

You can play a recorded macro with play()
macro.play()

If like to save a macro, call macro.save(). If will return a string, that can be saved in a file or something else.

f = open("myMacro.txt","w",encoding="utf-8")
f.write(macro.save())
f.close()

You can load a macro from a string, that you created with macro.save() with macro.load().

macro = QsciMacro(self.editor)
f =open("myMacro.txt","r",encoding="utf-8")
macro.load(f.read())
f.close()

macro.clear() clears a macro.

That was all I found about about macros. I hope it helps you to complete your great documentation.

when find or replace at regex, such as ^$\r\n,\r\n cannot be recognized.

when find or replace at regex, such as ^$\r\n, The newline symbol at the end of the line cannot be recognized. If you want to replace these characters, you will fail. It's not a good idea。

Sci::Position BuiltinRegex::FindText(Document *doc, Sci::Position minPos, Sci::Position maxPos, const char *s,
bool caseSensitive, bool, bool, int flags,
......
Sci::Position startOfLine = doc->LineStart(line);
Sci::Position endOfLine = doc->LineEnd(line); ------->myabe to change with LineStart(line+1)

Preserve selections when undoing/redoing

Hi again! I've asked about this one few weeks ago and also opened an issue on scintilla tracker at sourceforge. It seems Neil Hodgson won't implement it though and I dont know how to overcome these limitations

So, if you know how to achieve this behaviour, could you please describe me how to implement it? By doing so the usability of pyblime v0.0.2 would be increased drastically and starting to feel like coding in sublime

Thanks!!! As usual... ;)

sublime-syntax & .tmTheme support on QScintilla widgets

Hi, how you doing?

I've created a little standalone text editor that uses QScintilla and it supports some textmate features but it's on the very early stage and there is a lot of work to do to get it in shape. I'd need people with real skills like you to share the workload and make it usable, you can read a little bit about it here, would you like to join?

Yours,
Bruno

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.