VixinG Posted July 15, 2013 Share Posted July 15, 2013 guinness I did a lighter yellow - AdlibRegister I found out the Clipboard copy doesn't work on my browser. Here's the function if you would like to change it: <script> function ClipBoard(){ var text = document.getElementById("holdtext"); window.prompt ("CTRL+C to copy to clipboard:", text.innerText); } </script> And in the document's top right corner, and in the "copytext" element's top right corner: <a href="#" onclick="ClipBoard();"> It opens a prompt with code to copy etc. [indent=3][/indent] Link to comment Share on other sites More sharing options...
AZJIO Posted July 15, 2013 Share Posted July 15, 2013 VixinG I would not like to discuss in this topic. My option works in IE, but your are not working at all. My other projects or all Link to comment Share on other sites More sharing options...
VixinG Posted July 15, 2013 Share Posted July 15, 2013 (edited) VixinG I would not like to discuss in this topic. My option works in IE, but your are not working at all. I'm sorry, your code doesn't work for me in any browser, even IE, that's why I wanted to help. It's just me > Uncaught TypeError: Object #<HTMLTextAreaElement> has no method 'createTextRange' AscW.htm:26 ClipBoard AscW.htm:26 (anonymous function) Regards Edited July 15, 2013 by VixinG [indent=3][/indent] Link to comment Share on other sites More sharing options...
czardas Posted July 19, 2013 Share Posted July 19, 2013 (edited) Apart from Azijo, no-one has given any reasons for keeping this idea, unless you consider different colour suggestions an approval (which appears to be the case). although very few forum members have expressed an opinion. I found the square brackets difficult to differentiate. I think using two colours would make more sense - giving pseudo code elements one colour (perhaps black) and AutoIt code a different colour (or vice versa). I believe this would help beginners rather than confuse them. Edited July 19, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 19, 2013 Moderators Share Posted July 19, 2013 Hi,We already see many new users try to include the "optional" [ ] pseudo-syntax in their code and then wondering why it does not work. I would not wish to see the initial syntax explanation given the same colouring as the example code - the chances for confusion are just too great. In my opinion the only colouring of that section of the Help file page that might be advantageous would be putting the [ ] pseudo-syntax in light grey to distinguish it from the real syntax . M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
AZJIO Posted July 19, 2013 Share Posted July 19, 2013 (edited) We already see many new users try to include the "optional" [ ] pseudo-syntax in their code I have not seen 4 - voted "yes" 3 - voted "no" At the Russian forum I made long ago, problems didn't see. And all are silent, everything means agree. Edited July 19, 2013 by AZJIO My other projects or all Link to comment Share on other sites More sharing options...
czardas Posted July 19, 2013 Share Posted July 19, 2013 @Melba There are other pseudo code elements besides brackets included in the syntax section. General terms are also used such as 'expression'. @Azijo I think both options are acceptable but I prefer the simpler idea. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
AZJIO Posted July 19, 2013 Share Posted July 19, 2013 @czardas If syntax is similar to syntax of a code, it is easy to read it. All charm consists in it. My other projects or all Link to comment Share on other sites More sharing options...
czardas Posted July 19, 2013 Share Posted July 19, 2013 (edited) It's the syntax that needs to be understood. Syntax highlighting is very helpful with real code. I have never had a problem with the colours used in the syntax section of the help file. The complication is that it contains pseudo code elements. These ought to be different and stand out. If everything is highlighted, you lose that option. Edited July 19, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
AZJIO Posted July 19, 2013 Share Posted July 19, 2013 The problem can only be for beginners who have 2 posts on the forum. To do in favor of majority. My other projects or all Link to comment Share on other sites More sharing options...
czardas Posted July 19, 2013 Share Posted July 19, 2013 If 4 vote yes and 3 vote no (among thousands of users), it doesn't give a clear answer. People who don't vote may not care one way or the other. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
AZJIO Posted July 19, 2013 Share Posted July 19, 2013 We'll have to put them before the fact My other projects or all Link to comment Share on other sites More sharing options...
czardas Posted July 19, 2013 Share Posted July 19, 2013 We'll have to put them before the fact I didn't quite understand this. Please could you rephrase. operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
AZJIO Posted July 19, 2013 Share Posted July 19, 2013 Make a color syntax, and wait for the critics. Also everyone will keep quiet. My other projects or all Link to comment Share on other sites More sharing options...
czardas Posted July 19, 2013 Share Posted July 19, 2013 (edited) I understand you now. It seems reasonable. Why not try Melba's suggestion? Edited July 19, 2013 by czardas operator64 ArrayWorkshop Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted July 19, 2013 Moderators Share Posted July 19, 2013 AZJIO,Please do not take comments against syntax colouring so personally - we have as much right to express our opinion as you. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
AZJIO Posted July 19, 2013 Share Posted July 19, 2013 If you use an external style file, then every man would solve the problem for themselves. I've tried, but it requires in each page to introduce Java-script. My other projects or all Link to comment Share on other sites More sharing options...
guinness Posted July 19, 2013 Share Posted July 19, 2013 Is that possible to have an external stylesheet that the chm file can use? RIght now default.css is embedded in the chm file. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018 Link to comment Share on other sites More sharing options...
AZJIO Posted July 19, 2013 Share Posted July 19, 2013 guinness In HTML, I have a ready example. For CHM should be checked. My other projects or all Link to comment Share on other sites More sharing options...
Developers Jos Posted July 19, 2013 Author Developers Share Posted July 19, 2013 Added the option to vote.,.. What say you? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts