Slater Posted January 6 Posted January 6 Hi Everyone, I've a script to change the colour of some selected text, and in that vein I'd like to make one that changes the line spacing so that I can have indented paragraphs that look like bullet point lists, is this possible? The way to do it long hand is to go Format > Line Spacing > Other, and in my case it would be Left 0.8 and First -0.3 (as attached screen grab), but I can't figure out or find any answers on the web if it's possible to do this via a script, for the selected paragraphs / text? My FM version is 19.6.3 Many thanks for any ideas
Fitch Posted January 8 Posted January 8 There's no simple way to do it, but you might be able to achieve this with a web viewer, something like: https://www.sloperdata.com/demos/easy-filemaker-quill-integration
Slater Posted January 8 Author Posted January 8 Thanks for getting back to me Fitch, and I guess I'll just keep going to the menu to do it! All the best
comment Posted January 8 Posted January 8 I have a vague recollection of a method that kept a formatted character in a global text field and somehow inserted this character in front of a text in order to apply the character's formats to that text. I am afraid I don't know the details.
Slater Posted January 8 Author Posted January 8 Thanks Comment, I'd found this: https://community.claris.com/en/s/question/0D53w000054L1ihCAC/setting-line-spacing-with-a-script-possible Which was similar, though it's about being able to format whole fields and I'm trying to just use particular sections within a field's text. and you might have been thinking of this: https://community.claris.com/en/s/question/0D53w000069UD1tCAG/soft-return-in-calculated-field-text which is about using a calculation field, which doesn't work for me (though I don't really understand it!) Thanks though, and all the best,
comment Posted January 9 Posted January 9 I don't think those links are relevant to what I had in mind. Alas, I don't remember anything beyond what I already told you. I'll try and do a search later if I have the time.
comment Posted January 9 Posted January 9 This is what I was thinking of: https://fmforums.com/topic/48797-who-said-that-text-alignment-cant-be-set-by-script/#comment-227957 The demo file formats the entire field but it shouldn't be too difficult to adapt the method to a selected paragraph.
Slater Posted January 10 Author Posted January 10 wow Comment, you have an incredible archival knowledge of FM! 🙌 I've had a look at it, and it mainly seems out of my understanding, but I'll come back to it over the weekend and see if I can get things going! All the best
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now