meilcli / crossformattedtext Goto Github PK
View Code? Open in Web Editor NEWCrossFormattedText Plugin for Xamarin and Windows
License: MIT License
CrossFormattedText Plugin for Xamarin and Windows
License: MIT License
This is a very useful library! Thank you for creating this!
Cross platform management of formatted strings is very hard!
This will help a lot! But I have a feature request: a cross-platform .Substring() method for FormattedText.
REASON: Many times working on .Net/Xamarin cross platforms apps I have the need to extract or replace a SUBSTRING from a FormattedString, while KEEPING the formatting on all platforms.
But if I use methods like myFormattedString.ToString().Substring() or myFormattedString.ToString().Replace(), all the formatting is LOST.
Usually I'm forced to manually split my substrings in chunks and replace letters and substrings going span by span. But that code is long to write, ugly and error prone.
A Substring() or Replace() method working natively on your FormattedText would be awesome.
Once you add those, it would be easy to add other standard String methods like .Insert(), .Split(), .Trim(), .Contains(), .Remove(), .IndexOf(), and so on...
I think that would make your library a must for crossplatform developers! And in the end it will replace the string class completely. Rich text is now necessary in many mobile apps (emoticons, links, bold, etc), and this library that you created is a step in the right direction.
Thank you!
Now, FormattedString and FormattedStringBuilder's some Span reference is fixed.
Span references are added when some operation.
So, I think add Span reference combine and split operator to FormattedString(or FormattedStringBuilder)
Now use Visual Studio 2015.
C# 7.0 is available in Visual Studio 2017.
But Visual Studio 2017 not support project type:
Therefore it only supports the following:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.