Annotation processing method and device for visual programming, storage medium and electronic equipment

By introducing annotation windows and reference annotation interfaces into the visual programming platform, the problem that text annotations cannot effectively convey information is solved, programming efficiency and code understanding are improved, and programming errors and duplicate work are reduced.

CN119065709AActive Publication Date: 2024-12-03TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411220046.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-30
Publication Date
2024-12-03
Estimated Expiration
2044-08-30

AI Technical Summary

Technical Problem

In the existing visual programming platform, text annotation methods cannot effectively convey a large amount of information, resulting in low programming efficiency. Users need to consult additional information to understand the code content, which affects the programming experience.

Method used

Provide a visual programming annotation processing method. By responding to touch operations in the code block configuration interface, displaying annotation window, and selecting to jump to the corresponding reference annotation interface according to the annotation type, displaying detailed annotation information and reducing additional reference operations. .

Benefits of technology

Improve programming efficiency, help users better understand code blocks through detailed annotations, reduce errors and repetitive work in the programming process, and improve the programming experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065709A_ABST
    Figure CN119065709A_ABST
Patent Text Reader

Abstract

The invention discloses a visual programming annotation processing method and device, a storage medium and electronic equipment. The method comprises the steps that in response to a touch operation on a target code block in a code block configuration interface, an annotation window of the target code block is displayed, and the annotation window is used for obtaining annotation information configured for the target code block; in response to an operation on an annotation type selection control displayed in the annotation window, determining an index annotation type selected for the target code block from the at least two candidate annotation types; the code block configuration interface is skipped to a reference annotation interface matched with the index annotation type, and the reference annotation interface is used for displaying reference annotation information corresponding to the target code block. According to the method and the device, the technical problem of relatively low processing efficiency of visual programming provided by related technologies is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a method and device for processing annotations for visual programming, a storage medium, and an electronic device. Background Art

[0002] In existing visual programming platforms, comments can be added to code blocks. When users use or view code blocks, the functions, purposes or specific operations of the codes can be clarified through comments.

[0003] However, in the code block annotations provided by the relevant technology, only plain text annotations are supported, so that in the code block annotation interface, only the text annotations corresponding to the current code block can be displayed. In the case where the user needs to record or convey a large amount of information through annotations, if detailed annotations are made in the form of text, it will inevitably occupy more display interface in the annotation interface, thereby affecting the user's viewing experience. In order to improve the utilization rate of the above-mentioned display interface, brief annotations are usually made in text form, and the user needs to consult a large amount of relevant information in addition to obtain a complete understanding of the code content.

[0004] In other words, since the text annotation method provided by the relevant technology cannot annotate a large amount of effective information through text, the annotated content has certain limitations, and the code content must be confirmed in combination with additional reference materials during the programming process, which leads to the problem of low processing efficiency of existing visual programming.

[0005] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0006] The embodiments of the present application provide a method and device for processing annotations for visual programming, a storage medium, and an electronic device, so as to at least solve the technical problem of low processing efficiency of visual programming provided by related technologies.

[0007] According to one aspect of an embodiment of the present application, a method for processing comments in visual programming is provided, comprising: in response to a touch operation on a target code block in a code block configuration interface, displaying a comment window of the target code block, wherein the comment window is used to obtain comment information configured for the target code block; in response to an operation on a comment type selection control displayed in the comment window, determining an index comment type selected for the target code block from at least two candidate comment types; and jumping from the code block configuration interface to a reference comment interface matching the index comment type, wherein the reference comment interface is used to display reference comment information corresponding to the target code block.

[0008] According to another aspect of an embodiment of the present application, a visual programming annotation processing device is also provided, including: an annotation window display unit, used to display the annotation window of the target code block in response to a touch operation on the target code block in the code block configuration interface, wherein the annotation window is used to obtain the annotation information configured for the target code block; an annotation type selection unit, used to determine the index annotation type selected for the target code block from at least two candidate annotation types in response to an operation on the annotation type selection control displayed in the annotation window; and a reference annotation interface jump unit, used to jump from the code block configuration interface to a reference annotation interface matching the index annotation type, wherein the reference annotation interface is used to display the reference annotation information corresponding to the target code block.

[0009] Optionally, the above-mentioned reference comment interface jump unit includes: a link comment display module, which is used to display the comment link description information corresponding to the comment link in the comment window when the index comment type is a link comment type and it is determined that the comment link has been configured for the target code block; a first reference comment interface jump module, which is used to jump from the code block configuration interface to the reference comment interface corresponding to the comment link described by the comment link description information in response to a confirmation operation on the comment link description information.

[0010] Optionally, the above-mentioned first reference comment interface jump module is also used to: when the index comment type is a link comment type, but it is determined that the comment link is not configured for the target code block, display a link comment editing interface for obtaining the comment link in the comment window; in response to an input editing operation on the link comment editing interface, obtain the input configured comment link and the comment link description information corresponding to the comment link; in response to a confirmation operation on the link comment editing interface, prompt that the comment link has been configured for the target code block.

[0011] Optionally, the above-mentioned link annotation display module is also used to: in response to the operation of the link editing control in the link operation panel in the annotation window, display a link annotation editing interface for updating the annotation link in the annotation window; in response to the operation of the link deletion control in the link operation panel in the annotation window, prompt that the annotation link configured for the target code block has been deleted, and display the link annotation editing interface for updating the annotation link in the annotation window; in response to the operation of the link viewing control in the link operation panel in the annotation window, jump to the reference annotation interface corresponding to the annotation link described by the annotation link description information.

[0012] Optionally, the reference annotation interface jump unit further includes: a first return module, configured to return from the reference annotation interface to the code block configuration interface in response to an operation performed on a first return control displayed in the reference annotation interface.

[0013] Optionally, the link annotation display module is further used to: when it is determined that at least two annotation links have been configured for the target code block, display the annotation link description information corresponding to each of the at least two annotation links; the first reference annotation interface jump module is further used to: in response to a selection operation of the target annotation link description information in the annotation link description information corresponding to each of the at least two annotation links, jump from the code block configuration interface to the reference annotation interface corresponding to the annotation link described by the target annotation link description information.

[0014] Optionally, the above-mentioned reference annotation interface jump unit includes: a document annotation display module, which is used to display a document operation panel in the annotation window when the index annotation type is a document annotation type, wherein the document operation panel includes a document viewing control; a second reference annotation interface jump module, which is used to jump from the code block configuration interface to the reference annotation interface in response to an operation on the document viewing control.

[0015] Optionally, the second reference annotation interface jump module is further used to: return to the code block configuration interface from the reference annotation interface in response to an operation on a second return control displayed in the reference annotation interface.

[0016] Optionally, the above-mentioned second reference annotation interface jump module is also used to: in response to the operation of the editing control in the reference annotation interface, jump from the reference annotation interface to the document annotation editing interface for updating the reference annotation information; in response to the input editing operation on the document annotation editing interface, obtain the input document annotation information, and update the reference annotation information corresponding to the target code block in the document annotation editing interface.

[0017] Optionally, the above-mentioned document comment display module is also used to: jump to the document comment editing interface in the code block configuration interface in response to the operation of the document editing control; obtain the input document comment information in response to the input editing operation on the document comment editing interface, and update the reference comment information corresponding to the target code block in the document comment editing interface.

[0018] Optionally, the above-mentioned document comment display module is also used to: return to the code block configuration interface from the document comment editing interface in response to the operation performed on the third return control displayed in the document comment editing interface; display the reference comment interface in response to the operation of the document preview control displayed in the document comment editing interface; update the font of the document comment information selected in the document comment editing interface in response to the operation of the font editing control displayed in the document comment editing interface; add document content to the document comment interface in response to the operation of the document insertion control displayed in the document comment editing interface.

[0019] Optionally, the above-mentioned annotation processing device for visual programming also includes: an annotation field group modification unit, which is used to configure annotation information for the annotation content field included in the field group of the target code block when the type indicated by the object type field included in the annotation field group corresponding to the target code block is a text annotation type; when the type indicated by the object type field included in the annotation field group corresponding to the target code block is a link annotation type, configure an annotation link for the link field in the annotation content field group, and configure annotation link description information for the link description field in the annotation content field group, wherein the annotation link is used to indicate a reference annotation interface; when the type indicated by the object type field included in the annotation field group corresponding to the target code block is a document annotation type, configure reference annotation information for the annotation content field included in the field group of the target code block.

[0020] According to another aspect of the embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned annotation processing method of visual programming at runtime.

[0021] According to another aspect of the embodiment of the present application, a computer program product is provided, the computer program product comprising a computer program / instruction, the computer instruction being stored in a computer-readable storage medium. A processor of a computer device reads the computer program / instruction from the computer-readable storage medium, and the processor executes the computer program / instruction, so that the computer device executes the annotation processing method of the above visual programming.

[0022] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the above-mentioned visual programming annotation processing method through the above-mentioned computer program.

[0023] In an embodiment of the present application, in response to a touch operation on a target code block in a code block configuration interface, a comment window of the target code block is displayed, wherein the comment window is used to obtain comment information configured for the target code block; in response to an operation on a comment type selection control displayed in the comment window, an index comment type selected for the target code block is determined from at least two candidate comment types; and the code block configuration interface is jumped to a reference comment interface matching the index comment type, wherein the reference comment interface is used to display reference comment information corresponding to the target code block. In the code block configuration interface, after responding to a touch operation on the target code block, a comment window of the target code block can be displayed to display the comment information configured for the target code block through the comment window. By responding to an operation on a comment type selection control displayed in the comment window, a selected index comment type can be determined from the candidate comment types, so as to jump from the code block configuration interface to a reference comment interface matching the index comment type, and the reference comment information corresponding to the target code block can be displayed in the reference comment interface. This allows users to consult relevant materials during visual programming without having to perform additional operations, thereby improving programming efficiency, and more detailed annotations can help users better understand code blocks to reduce errors and repetitive work during programming. This solves the technical problem of low processing efficiency of visual programming provided by related technologies. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0025] Figure 1 It is a schematic diagram of a hardware environment of an optional visual programming annotation processing method according to an embodiment of the present application;

[0026] Figure 2 is a flowchart of an optional annotation processing method for visual programming according to an embodiment of the present application;

[0027] Figure 3 is a schematic diagram of an optional annotation processing method for visual programming according to an embodiment of the present application;

[0028] Figure 4 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0029] Figure 5 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0030] Figure 6is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0031] Figure 7 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0032] Figure 8 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0033] Fig. 9 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0034] Fig.10 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0035] Fig.11 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0036] Fig.12 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0037] Fig.13 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0038] Fig.14 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application;

[0039] Fig.15 is a schematic diagram of an optional visual programming annotation processing device according to an embodiment of the present application;

[0040] Fig.16 is a schematic diagram of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.

[0042] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0043] According to one aspect of the embodiment of the present application, a method for processing annotations in visual programming is provided. As an optional implementation, the above-mentioned method for processing annotations in visual programming can be applied to, but is not limited to, Figure 1 The visual programming annotation processing system in the hardware environment shown in FIG. The visual programming annotation processing system may include but is not limited to a terminal device 102, a network 110, a server 112, and a database 114. The terminal device 102 runs a target client (such as Figure 1 As shown, the target client is a client that implements visual programming by moving code blocks as an example). The above-mentioned terminal device 102 includes a display 108, a processor 106 and a memory 104. The display 108 can be used to display a code block configuration interface, a target code block, etc., and is also used to provide a human-computer interaction interface to receive operations on code blocks in the code block configuration interface and human-computer interaction operations on touch controls of different controls. The processor is used to generate an interaction instruction in response to the above-mentioned human-computer interaction operation, and send the interaction instruction to the server to obtain reference annotation information and related information of the reference annotation interface. The memory is used to store candidate annotation types and annotation information of the target code block.

[0044] In addition, the server 112 includes a processing engine 116, which is used to perform storage or reading operations on the database 114. Specifically, the processing engine 116 reads reference annotation information from the database 114.

[0045] Assumptions Figure 1The terminal device 102 in the embodiment runs a client for operating code blocks to implement visual programming. The specific process of this embodiment is as follows: As in step S102, the terminal device 102 displays the annotation window of the target code block in response to the touch operation of the target code block in the code block configuration interface in the client. Then, step S104 is executed, and in response to the operation of the annotation type selection control displayed in the annotation window, an index annotation type is determined from at least two candidate annotation types. After that, the terminal device 102 can send a request for obtaining reference annotation information to the server 112 through the network 110. After receiving the reference annotation information request, the server 112 executes step S106 and sends the reference annotation information to the terminal device 102 through the network 110. Then the terminal device 102 executes step S108, jumps to the reference annotation interface that matches the index annotation type, and displays the reference annotation information.

[0046] Optionally, in this embodiment, the terminal device 102 may be a terminal device configured with a target client, which may include but is not limited to at least one of the following: a mobile phone (such as an Android phone, an iOS phone, etc.), a laptop, a tablet computer, a PDA, a MID (Mobile Internet Devices), a PAD, a desktop computer, a smart TV, etc. The target client may be a visual programming client, a browser client, or other clients that support annotation processing tasks for visual programming. The network may include but is not limited to: a wired network, a wireless network, wherein the wired network includes: a local area network, a metropolitan area network, and a wide area network, and the wireless network includes: Bluetooth, WIFI, and other networks that implement wireless communication. The server may be a single server, or a server cluster consisting of multiple servers, or a cloud server. The above is only an example, and this embodiment does not impose any limitation on this.

[0047] Optionally, in this embodiment, the above-mentioned annotation processing method of visual programming can be applied to, but not limited to, programming education for teenagers, and basic programming can be achieved by dragging and dropping code blocks. The annotation information of the code block can be edited and determined when setting the code block. During user use, the visual programming client on the terminal device can display the annotation window of the target code block in response to the touch operation of the code block in the code block configuration interface, and display predetermined annotation information in the annotation window. In response to the operation of the annotation type selection control displayed in the annotation window, the index annotation type can be determined, and the reference annotation interface matching the index annotation type can be jumped to display the reference annotation information corresponding to the target code block. During the programming process, the intent and logic of the current target code block can be displayed more clearly to improve the accuracy and efficiency of programming.

[0048] Optionally, in this embodiment, the above-mentioned annotation processing method of visual programming can be applied to, but not limited to, a user generated content (UGC) editor provided in a game, and content creation can be achieved by dragging and dropping code blocks, such as the creation of video, audio, and game content. Taking a game as an example, in the process of creating a game, in response to a touch operation on a code block, events, roles, actions, etc. can be combined and spliced ​​to generate various types of games such as parkour, battle, and level-breaking, or to design custom levels and create new game modules (new functions, new mechanisms, etc.). In the process of creating a game, the game client on the terminal device can display the annotation window of the target code block in response to the touch operation on the code block in the code block configuration interface, and display the predetermined annotation information in the annotation window; in response to the determination operation of the index annotation type in the annotation window, it can jump to the reference annotation interface matching the index annotation type to display the reference annotation information corresponding to the target code block. The code block configuration interface can display annotation information to the user so that the user can obtain the purpose or function of the target code block currently being touched, which can make it easier for the user to understand the working principle of the target code block, thereby improving the accuracy and efficiency of programming. On the basis of making it easier for the user to understand the working principle of the target code block, the user's sense of participation in the game can be improved, thereby increasing the diversity and novelty of the game.

[0049] In the process of creating a game using the code block configuration interface, the terminal device can modify the reference annotation information in response to the operation of the reference annotation interface of the target code block to annotate the new game module implemented by the combination of the current code blocks to better display the logical relationship, so that other users can better understand the game programmed by the current code blocks, thereby improving communication between users and promoting the formation of a user communication area in the game.

[0050] Optionally, in this embodiment, the above-mentioned annotation processing method of visual programming can be applied to robot programming but is not limited to it. During the robot programming process, the robot can be controlled and programmed through the code block configuration interface, and the robot's actions and behaviors can be defined by the movement of the code block. The code blocks in the preset code block toolbox can be associated with preset annotations. During the programming process, in response to the touch operation of the target code block in the code block configuration interface, the annotation window of the target code block can be displayed, and the pre-set annotation information can be displayed in the annotation window. In response to the operation of the annotation type selection control, it can jump to the reference annotation interface matching the index annotation type to display the reference annotation information corresponding to the target code block, such as the user manual of the code block. During the programming process, different sensor inputs may be set, or used in conjunction with different robot hardware. Therefore, during the programming process, the annotation information of the target code block can be changed, such as changing the index annotation type matching the reference annotation interface indicating how to use the monocular sensor to the index annotation type matching the reference annotation interface indicating how to use the infrared sensor. When the robot project is used subsequently, in response to a touch operation on a target code block in the project and an operation on the index annotation type selection control, the user will be redirected to a reference annotation interface indicating how to use the infrared sensor.

[0051] Optionally, in this embodiment, the above-mentioned annotation processing method of visual programming can be applied to, but not limited to, product development. Different code blocks can be spliced ​​and combined by moving the target code block in the code block configuration interface. The code block can be a code block representing logic or loops. After the code blocks are spliced, it may be necessary to add parameters to the code blocks. Therefore, it is necessary to explain the code blocks or the connection methods between the code blocks through annotations, or to explain the use of the product. When the product is used, in response to the operation of the target code block, the annotation window of the code block can be displayed, and in response to the operation of the annotation type selection control, it can jump to the reference annotation interface that matches the index annotation type to display the reference annotation information.

[0052] The above usage scenarios are only examples, and any scenario related to annotation processing of visual programming can utilize the solution of the present application. This embodiment does not impose any limitation on this.

[0053] In an embodiment of the present application, in response to a touch operation on a target code block in a code block configuration interface, a comment window of the target code block is displayed, wherein the comment window is used to obtain comment information configured for the target code block; in response to an operation on a comment type selection control displayed in the comment window, an index comment type selected for the target code block is determined from at least two candidate comment types; and the code block configuration interface is jumped to a reference comment interface matching the index comment type, wherein the reference comment interface is used to display reference comment information corresponding to the target code block. In the code block configuration interface, after responding to a touch operation on the target code block, a comment window of the target code block can be displayed to display the comment information configured for the target code block through the comment window. By responding to an operation on a comment type selection control displayed in the comment window, a selected index comment type can be determined from the candidate comment types, so as to jump from the code block configuration interface to a reference comment interface matching the index comment type, and the reference comment information corresponding to the target code block can be displayed in the reference comment interface. This allows users to consult relevant materials during visual programming without having to perform additional operations, thereby improving programming efficiency, and more detailed annotations can help users better understand code blocks to reduce errors and repetitive work during programming. This solves the technical problem of low processing efficiency of visual programming provided by related technologies.

[0054] As an optional implementation, Figure 2 As shown, the annotation processing method of the above visual programming includes the following steps:

[0055] S202, in response to a touch operation on a target code block in the code block configuration interface, displaying a comment window of the target code block, wherein the comment window is used to obtain comment information configured for the target code block;

[0056] It should be noted that visual programming is a programming method that allows you to build programs through a graphical interface. You can use graphical tools to represent code logic, such as flowcharts, charts, or drag-and-drop components. Visual programming can be achieved using visual programming tools such as Blockly and Scratch. The Blockly tool can represent logic as building blocks that can be dragged and dropped in the interface. By combining these building blocks to form complex programs, users can build programs without writing actual code.

[0057] It should be noted that in visual programming, the code block configuration interface can be composed of multiple components. It can include: Toolbox: A panel can be placed on one side of the code block configuration interface, and all available code block categories and code blocks are listed. Workspace: It can be a large area in the center of the code block configuration interface, where code blocks can be displayed or spliced ​​to build a program. The workspace can be an infinitely expandable area, in which the display area can be changed by responding to the perspective movement instruction. Code area: It can be arranged around the workspace, and the text code corresponding to the code block in the current workspace can be displayed, and the text code can be displayed or modified in response to the code viewing or editing instruction. Configuration panel: A configuration panel can be set separately to respond to the program property setting instruction to update the program properties such as program name, version, etc. It can also include a run control for running the program, a save control for saving the program, etc. The components listed here are only illustrative examples and are not limited to the above-mentioned parts. The functions that may be used in visual programming can be laid out as function controls in the code block configuration interface.

[0058] In an optional embodiment, the code block in the visual programming can be a graphical programming element, which can represent various structures and operations in the programming language. In response to the move operation of the code block in the code block configuration interface, the code block can be dragged to the workspace to construct the logic of the program by splicing different code blocks. The types of code blocks may include: logic block: can represent logical structures, such as if-else conditional judgment, switch-case selection structure, etc. Loop block: can represent loop structure, such as for loop, while loop, do-while loop, etc. Math block: can provide mathematical operations, such as addition, subtraction, multiplication, division, modulus, etc. Variable block: can declare and operate variables, can set the value of variables or read the value of variables. Function block: can define and call functions, can contain parameters and return values. List block: can create and operate lists (arrays), such as adding elements, getting elements, list length, etc. String block: can process strings, such as splicing strings, getting substrings, string length, etc. Color block: in graphics or game programming, colors can be selected and operated. Event block: can handle input or system events, such as mouse clicks, keyboard keys, etc. Action block: in game or animation programming, can control the actions of characters or objects, such as moving, rotating, jumping, etc. Sensor block: in robot programming, can read sensor data, such as light intensity, sound intensity, distance, etc. Control block: can control the program flow, such as waiting, stopping, repeating, etc. Code blocks can have different shapes, colors and icons to allow users to quickly identify and understand the functions.

[0059] In an optional embodiment, in response to a move operation on a target code block in a code block configuration interface, the target code block can be moved to a workspace in a code block configuration interface. A touch operation on a target code block in a code block configuration interface can display a comment window of the target code block. The touch operation can be a click operation on the target code block, a determination that the time a cursor hovers over the target code block satisfies a preset time, and other different methods.

[0060] In an optional embodiment, unlike the comments written directly next to the code in traditional text programming, visual programming focuses on graphical operations, so a window is needed to display the comment information, and the comment window can provide a way to obtain and display the comment information of the corresponding code block. The comment window can be in a fixed position, or it can be displayed around the target code block with the code block as the position anchor. The comment window can be a small window that is hidden when not triggered and displayed in response to a touch operation on the target code block, or it can be a component that is displayed for a long time in the form of a special comment block.

[0061] In an optional embodiment, comment information of the target code block can be displayed in the comment window of the target code block. The comment information can explain the target code block and help the user understand the function of the target code block and how to combine the target code block with other code blocks to construct the logic of the program.

[0062] Figure 3 is a schematic diagram of an optional annotation processing method for visual programming according to an embodiment of the present application; Figure 3 As shown, in the code block configuration interface 304, in response to a move operation on a code block in the toolbox 302, the code block in the toolbox 302 can be dragged to the workspace. Figure 3 In the operation, in response to the move instruction, the code block "face age result" is moved from the toolbox 302 to the code block configuration interface 304. The code block configuration interface 304 may also include different controls such as a return control, a run control, and a code block management panel.

[0063] Figure 4 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application; Figure 4 As shown in (a) of FIG. 4 , in response to a selection operation on a code block in a toolbox or workspace, the code block can be determined as a target code block 402. Figure 4 As shown in (b) in FIG. 1 , in response to a touch operation on the comment control in the code block management panel, a comment window 406 matching the target code block 402 may be displayed in the code block configuration interface, and comment information 404 may be displayed in the comment window 406 .

[0064] Figure 5is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application; Figure 5 As shown in (a) of FIG. 5 , in response to a selection operation on a code block in a toolbox or workspace, the code block can be determined as a target code block 502. Figure 5 As shown in (b) in FIG. 5 , in response to a touch operation on the target code block 502 , a comment window 504 of the target code block 502 may be displayed, and comment information 506 configured for the target code block 502 may be displayed in the comment window 504 .

[0065] S204, in response to an operation on a comment type selection control displayed in the comment window, determining an index comment type selected for the target code block from at least two candidate comment types;

[0066] In an optional implementation, the annotation type selection control may be a control in the annotation window, which may be placed at a fixed position in the annotation window, and in response to an operation on the annotation type selection control, at least two candidate annotation types may be displayed. The operation on the annotation type selection control may be a click operation on the annotation type selection control, or the cursor may stay on the annotation type selection control for a preset time threshold.

[0067] In an optional implementation, the comment type may be used to indicate the type of comment information, which may be a text comment that explains a code block, or an index comment type that may jump to display other interfaces.

[0068] It should be noted that the comment type selection control can be arranged in the comment window. When viewing the comments of the target code block through the comment window, the type of displayed comment information can be conveniently changed through the comment type selection control in the comment window without having to operate elsewhere in the code block configuration interface.

[0069] Figure 6 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application; Figure 6 As shown in (a) of FIG. 1 , in the code block configuration interface, the annotation window 604 corresponding to the target code block 602 includes an annotation type selection control 606. Figure 6 As shown in (b) of FIG. 6 , in response to a touch operation on the comment type selection control 606 included in the comment window 604 corresponding to the target code block 602, a comment type display interface may be displayed, and a plurality of candidate comment types 608 may be displayed in the comment type display interface. In response to a determination operation on an index comment type 610 in the candidate comment types 608, the index comment type 610 selected for the target code block 602 may be determined from at least two candidate comment types 608.

[0070] Figure 6 The illustrated embodiment is only an optional method, wherein the annotation type selection control 606 can be located at any position and in any form. The annotation type selection control 606 may not be arranged separately, such as being located at the same place as the annotation description of the current annotation type. The index annotation type is also not limited to Figure 6 As shown in , the ways to display additional annotation information can all be used as index annotation types, such as an index to jump to a user manual, an index to jump to an animation demonstration, etc.

[0071] S206, jumping from the code block configuration interface to a reference annotation interface matching the index annotation type, wherein the reference annotation interface is used to display reference annotation information corresponding to the target code block.

[0072] It should be noted that in the process of visual programming, text comments alone may not provide a full understanding of the code block. You may need to view sample code related to the code block, or view the usage of the code block in the community and forum, or view more detailed instructions such as usage documents and user manuals.

[0073] In an optional embodiment, after determining the index annotation type selected for the target code block from at least two candidate annotation types, you can jump from the code block configuration interface to the reference annotation interface matching the index annotation type to display the reference annotation information corresponding to the target code block through the reference annotation interface.

[0074] In an optional implementation, the reference annotation interface may be a page indicated by an external link, or may be a preset description document, etc., in which reference annotation information may exist to further describe the target code block.

[0075] In an optional implementation, the reference annotation interface can be a separate pop-up window in the code block configuration interface, or it can be a new interface jumped from the code block configuration interface. Different annotation types can correspond to different reference annotation interfaces to display different reference annotation information. The display of the specific reference annotation interface will be described in detail below and will not be repeated here.

[0076] In an embodiment of the present application, in response to a touch operation on a target code block in a code block configuration interface, a comment window of the target code block is displayed, wherein the comment window is used to obtain comment information configured for the target code block; in response to an operation on a comment type selection control displayed in the comment window, an index comment type selected for the target code block is determined from at least two candidate comment types; and the code block configuration interface is jumped to a reference comment interface matching the index comment type, wherein the reference comment interface is used to display reference comment information corresponding to the target code block. In the code block configuration interface, after responding to a touch operation on the target code block, a comment window of the target code block can be displayed to display the comment information configured for the target code block through the comment window. By responding to an operation on a comment type selection control displayed in the comment window, a selected index comment type can be determined from the candidate comment types, so as to jump from the code block configuration interface to a reference comment interface matching the index comment type, and the reference comment information corresponding to the target code block can be displayed in the reference comment interface. This allows users to consult relevant materials during visual programming without having to perform additional operations, thereby improving programming efficiency, and more detailed annotations can help users better understand code blocks to reduce errors and repetitive work during programming. This solves the technical problem of low processing efficiency of visual programming provided by related technologies.

[0077] In an optional embodiment, the above-mentioned jump from the code block configuration interface to the reference annotation interface matching the index annotation type includes: when the index annotation type is a link annotation type and it is determined that an annotation link has been configured for the target code block, displaying annotation link description information corresponding to the annotation link in the annotation window; in response to a confirmation operation on the annotation link description information, jumping from the code block configuration interface to the reference annotation interface corresponding to the annotation link described by the annotation link description information.

[0078] It should be noted that the index annotation type can be a link annotation type, and the target code block can be configured with an annotation link. An annotation link is used to indicate a page with a specified address, which can be a hyperlink to allow jumping from the code block configuration interface to another document or web page in response to an operation on the link. An annotation link can match a page, resource, or document, and can jump to the corresponding reference annotation interface through the annotation link. For example, it can be a related document, sample code, interface instruction manual, etc.

[0079] In an optional implementation, when the selected index annotation type is a link annotation type, it can be determined whether the target code block is configured with an annotation link, and when the target code block is configured with an annotation link, annotation link description information corresponding to the annotation link can be displayed in the annotation window. The annotation link description information can be an explanation of the annotation link, and can be a brief description or annotation of the reference annotation interface corresponding to the annotation link to indicate the purpose of the annotation link and the content it points to.

[0080] In an optional embodiment, the confirmation operation in response to the annotation link description information may be a touch operation on a confirmation control in the annotation window or a touch operation on a confirmation control in the code block configuration interface. The reference annotation interface may be used to display the web page or information indicated by the annotation link.

[0081] Figure 7 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application; Figure 7 As shown in (a) of FIG. 5 , in response to a touch operation on a link annotation type 706 displayed in an annotation window 704 associated with a target code block 702, it can be determined whether the target code block 502 has been configured with an annotation link. Figure 7 As shown in (b) in FIG. 1 , when an annotation link is configured, the annotation link description information 708 corresponding to the annotation link is displayed in the annotation window 704 (eg, Figure 7 In the annotation window 704, a confirmation control 710 is arranged. In response to the touch operation of the confirmation control 710, it can be regarded as a confirmation operation of the annotation link description information, and the user can jump from the code block configuration interface to the reference annotation interface corresponding to the annotation link described by the annotation link description information 708.

[0082] Through the above-mentioned implementation mode of the present application, when the index annotation type is a link annotation type and it is determined that the annotation link has been configured for the target code block, the annotation link description information corresponding to the annotation link can be displayed in the annotation window, and the annotation link can be explained through the annotation link description information. In response to the confirmation operation of the annotation link description information, jumping from the code block configuration interface to the reference annotation interface corresponding to the annotation link described by the annotation link description information can reach the reference annotation interface more quickly, obtain the reference annotation information, and explain the target code block in more detail. The annotation link is explained through the annotation link description information and jumps between interfaces in response to the confirmation operation, rather than directly jumping, so that the reference annotation interface that needs to be viewed can be displayed, and the required reference annotation information can be obtained. Thereby, the process of consulting relevant materials is reduced in the process of visual programming, and the efficiency of visual programming is improved.

[0083] In an optional embodiment, before the above-mentioned jump from the code block configuration interface to the reference annotation interface matching the index annotation type, it also includes: when the index annotation type is a link annotation type, but it is determined that the annotation link is not configured for the target code block, a link annotation editing interface for obtaining the annotation link is displayed in the annotation window; in response to an input editing operation on the link annotation editing interface, the input configured annotation link and the annotation link description information corresponding to the annotation link are obtained; in response to a confirmation operation on the link annotation editing interface, a prompt is given that the annotation link has been configured for the target code block.

[0084] In an optional embodiment, in response to the selection of a link annotation type, whether the target code block has an associated link annotation can be obtained from the server. If there is no associated link annotation, it can be considered that the target code block is not configured with an annotation link, and the link annotation editing interface can be displayed in the annotation window.

[0085] In an optional implementation, the link annotation editing interface can obtain the annotation link, and the link annotation editing interface can obtain the annotation link corresponding to the input editing operation and / or the annotation link description information corresponding to the annotation link according to the received input editing operation, and display the obtained annotation link and / or the annotation link description information corresponding to the annotation link at a specified position of the link annotation editing interface. In the link annotation editing interface, the annotation link and the annotation link description information can be displayed separately in two fixed position text boxes, or the annotation link and the annotation link description information can be displayed together in a fixed position text box.

[0086] In an optional embodiment, after responding to an input editing operation on the link annotation editing interface, the annotation link and the annotation link description information in the text box at the current fixed position can be configured to the target code block in response to a confirmation operation on the link annotation editing interface. In the process of configuring the annotation link and the annotation link description information to the target code block, the annotation link can be subjected to a reachability check, such as attempting to access the link and checking the response status of the network request to determine whether the annotation link can open the reference annotation interface.

[0087] In an optional embodiment, in response to a confirmation operation on the link annotation editing interface, and when it is determined that the annotation link is reachable, it can be prompted that the annotation link has been configured for the target code block. The prompt for configuring the annotation link for the target code block can be closing the link annotation editing interface and displaying the annotation link description information in the annotation window. A prompt window can also be popped up to prompt configuration completion information.

[0088] Figure 8 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application; Figure 8As shown in (a) of FIG. 1 , a plurality of code blocks including a target code block 802 may be displayed in the code block configuration interface. In response to a touch operation on the target code block 802, a comment window 804 corresponding to the target code block 802 may be displayed, and after selecting a link comment type, it may be determined whether the target code block is configured with a comment link. Figure 8 As shown in (b), when the comment link is not configured, the link comment editing interface 812 can be displayed in the comment window 804. The link comment editing interface 812 can include a comment link editing box 806 for displaying the comment link and a description information editing box 808 for displaying the comment link description information. In response to the input editing operation on the comment link editing box 806, the content displayed in the comment link editing box 806 can be updated according to the input configured comment link; in response to the input editing operation on the description information editing box 808, the content displayed in the description information editing box 808 can be updated according to the input configured comment link description information. After responding to the touch operation on the confirmation control 810, it can be detected whether the comment link in the current comment link editing box 806 is reachable, and if it is determined that it is reachable, the comment link is configured to the target code block 802. After that, the link comment editing interface 812 can be closed, and the comment link description information currently displayed in the description information editing box 808 is displayed in the comment window 804.

[0089] Through the above-mentioned implementation mode of the present application, in response to the selection of the link annotation type, it can be determined whether the target code block is configured with an annotation link, and in the case where the annotation link is not configured, the link annotation editing interface can be displayed in the annotation window. It is possible to respond to the input editing operation and configure the annotation link for the target code block so that when the annotation of the target code block is subsequently viewed, it is possible to jump to the reference annotation interface through the annotation link. Information can be fully conveyed through the link annotation during the programming process, and reference annotation information can also be fully consulted through the link annotation, thereby improving programming efficiency.

[0090] In an optional implementation manner, the annotation link description information corresponding to the annotation link displayed in the annotation window further includes at least one of the following:

[0091] 1) in response to an operation on a link editing control in a link operation panel in an annotation window, displaying a link annotation editing interface for updating an annotation link in the annotation window;

[0092] 2) in response to an operation on a link deletion control in a link operation panel in the annotation window, prompting that the annotation link configured for the target code block has been deleted, and displaying a link annotation editing interface for updating the annotation link in the annotation window;

[0093] 3) In response to an operation on a link viewing control in a link operation panel in the annotation window, jump to a reference annotation interface corresponding to the annotation link described by the annotation link description information.

[0094] In an optional embodiment, in response to the selection of the link annotation type, it can be determined whether the target code block is configured with an annotation link. If the target code block is configured with an annotation link, the annotation link description information and the link operation panel can be displayed in the annotation window. If the target code block is not configured with an annotation link, a link annotation editing interface can be displayed, and in response to inputting an editing operation and a confirmation operation, the annotation link description information and the link operation panel are displayed in the annotation window.

[0095] In an optional implementation, the link operation panel may be a panel for managing annotation links, which may include operations such as editing and deleting annotation links, and opening a reference annotation interface corresponding to the annotation link.

[0096] Fig. 9 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application; Fig. 9 As shown in (a), in response to a touch operation on a link annotation type 906 displayed in an annotation window 904 associated with a target code block 902, it can be determined whether the target code block 902 has been configured with an annotation link. Fig. 9 As shown in (b) of FIG. 1 , when configuring the annotation link, the annotation window 904 corresponding to the target code block 902 in the code block configuration interface displays the annotation link description information 906 and the link operation panel 914. The link operation panel 914 may include a link editing control 908, a link deletion control 910, a link viewing control 912, and the like.

[0097] In an optional embodiment, in response to a touch operation on the link editing control 908 in the link operation panel 914 in the annotation window 904, a link annotation editing interface for updating the annotation link may be displayed in the annotation window (eg, Figure 8 In the link annotation editing interface (b), the annotation link currently configured in the target code block 902 can be displayed in the annotation link editing box in the link annotation editing interface, and the annotation link description information 906 can be displayed in the description information editing box. In the link annotation editing interface, in response to the input operation, the annotation link and the annotation link description information can be updated. In response to the confirmation operation in the link annotation editing interface, the user can jump to the annotation window 904 and update the annotation link description information 906 using the information in the description information editing box.

[0098] In an optional embodiment, in response to an operation on the link deletion control 910 in the link operation panel 914 in the annotation window 904, the configuration relationship between the annotation link currently configured in the target code block 902 and the target code block 902 can be released, and a link annotation editing interface (which can be as shown in FIG. 1 ) is displayed in the annotation window 904. Figure 8 The original annotation link and description information in the annotation link edit box and description information edit box in the link annotation edit interface will be deleted, and an input information prompt (such as a flashing vertical cursor, light-colored prompt information, etc.) will be displayed. In the link annotation edit interface, the annotation link and annotation link description information can be updated in response to the input operation. After responding to the confirmation operation in the link annotation edit interface, the user can jump to the annotation window 904 and update the annotation link description information 906 using the information in the description information edit box.

[0099] In an optional embodiment, in response to an operation on the link viewing control 912 in the link operation panel 914 in the annotation window 904, the annotation link currently configured in the target code block 902 can be read, and a request can be sent to the server according to the annotation link to obtain a reference annotation interface. After receiving the request sent by the terminal device, the server will process and return the web page content corresponding to the annotation link. After receiving the corresponding web page content, the terminal device can jump to the reference annotation interface corresponding to the annotation link described by the annotation link description information.

[0100] By the above-mentioned implementation mode of the present application, after responding to the selection to the link annotation type, in the annotation window, a link operation panel can be displayed, and a plurality of operation controls that the annotation link is managed can be included in the link operation panel, such as link editing control, link deletion control and link viewing control etc. Through a variety of operation controls, different operations can be implemented to the annotation link, and then the annotation link is updated, and the corresponding reference annotation interface can be jumped to by the annotation link. The annotation link of the target code block can be updated in the editing process, so that when the target code block is subsequently viewed, the annotation information of the target code block can be fully displayed. Through the above-mentioned method, the programming process can be more conveniently viewed and managed link annotations, to improve user experience, and improve editing efficiency.

[0101] In an optional embodiment, after the above-mentioned jump from the code block configuration interface to the reference annotation interface matching the index annotation type, it also includes: returning to the code block configuration interface from the reference annotation interface in response to an operation performed on the first return control displayed in the reference annotation interface.

[0102] In an optional embodiment, in response to the selection of a link annotation type, you can jump from the code block configuration interface to a reference annotation interface that matches the link annotation type. The reference annotation interface can be an HTML page written in HyperText Markup Language (HTML), which can include text, pictures, links, forms, scripts, and other elements.

[0103] In an optional embodiment, jumping from the code block configuration interface to the reference annotation interface matching the link annotation type can utilize the iframe (inline frame) tag in HTML. The iframe allows another HTML page to be embedded in the current page. The process of using the iframe to open the reference annotation interface can be: in the code block configuration interface, use <iframe>The tag defines an inline frame, sets the src (full name "source") attribute of the <iframe> tag to the annotation link, places the <iframe> tag in the visible content of the page, and then the size of the reference annotation interface can be adjusted according to the preset size attribute and the reference annotation interface is displayed in the code block configuration interface.

[0104] In an alternative embodiment, a first return control can be overlaid on top of the <iframe> component to display the first return control in the reference annotation interface. In response to an operation on the first return control, the code block configuration interface can be returned from the reference annotation interface.

[0105] Figure 10 is a schematic diagram of another alternative annotation processing method for visual programming according to an embodiment of the present application; as shown in (a) of Figure 10, annotation link description information 1006 and a link operation panel 1014 are displayed in the annotation window 1004 corresponding to the target code block 1002 in the code block configuration interface. The link operation panel 1014 may include, for example, a link editing control 1008, a link deletion control 1010, a link viewing control 1012, etc. As shown in (b) of Figure 10, in response to a touch operation on the link viewing control 1012, the code block configuration interface can be jumped to a reference annotation interface that matches the annotation link, and the reference annotation interface can be an HTML-based web page. There is reference annotation information in the reference annotation interface, and a first return control 1016 is displayed in the reference annotation interface. In response to a touch operation on the first return control 1016, the code block configuration interface can be returned from the reference annotation interface (as shown in (a) of Figure 10).

[0106] Through the above-mentioned implementation mode of the present application, when jumping from the code block configuration interface to the reference annotation interface that matches the annotation link, there may be reference annotation information in the reference annotation interface, so as to describe and explain the target code block in detail through the reference annotation information. During the programming process, the instructions for use of the target code block can be quickly obtained through the reference annotation information in the reference annotation interface, and after displaying the reference annotation information, in response to the touch operation of the first return control in the reference annotation interface, it is possible to directly return to the code block configuration interface, and then continue programming, so as to improve the efficiency of programming.

[0107] In an optional embodiment, displaying the comment link description information corresponding to the comment link in the above-mentioned comment window includes: when it is determined that at least two comment links have been configured for the target code block, displaying the comment link description information corresponding to each of the at least two comment links; in response to a confirmation operation on the comment link description information, jumping from the code block configuration interface to a reference comment interface corresponding to the comment link described by the comment link description information includes: in response to a selection operation on the target comment link description information in the comment link description information corresponding to each of the at least two comment links, jumping from the code block configuration interface to a reference comment interface corresponding to the comment link described by the target comment link description information.

[0108] In an optional implementation, in response to an operation on a comment type selection control displayed in the comment window, when a link comment type is selected, it can be determined whether the target code block is configured with multiple comment links. If there are multiple comment links, the comment link description information corresponding to the multiple comment links can be displayed.

[0109] In an optional embodiment, in response to a selection operation on a target annotation link description information among multiple annotation link description information, the target annotation link described by the target annotation link description information can be obtained in the server, and the target annotation link can be accessed to jump from the code block configuration interface to the reference annotation interface corresponding to the target annotation link.

[0110] Figure 11 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application; as shown in (a) of Figure 11, in response to a touch operation on the link annotation type 1106 displayed in the annotation window 1104 corresponding to the target code block 1102, when it is determined that the target code block 1102 in the code block configuration interface is configured with multiple annotation links, as shown in (b) of Figure 11, multiple annotation link description information can be displayed in the annotation window 1104. The annotation window 1104 also includes a link operation panel 1106, and there can be multiple link viewing controls 1112 in the link operation panel 1106. The number of link viewing controls 1112 can be the same as the number of annotation links configured for the target code block 1102, and the link viewing controls 1112 can correspond to the annotation links respectively. By performing a touch operation on the link viewing control 1112, it is possible to jump from the code block configuration interface to the reference annotation interface corresponding to the target annotation link description information. The link operation panel 1106 can also include a link editing control 1110. In response to a touch operation on the link editing control 1110, multiple annotation link description information can be edited. For example, a certain annotation link description information can be updated. The link operation panel 1106 can also include a link deletion control 1108. In response to a touch operation on the link deletion control 1108, a certain annotation link description information among the multiple annotation link description information can be deleted.

[0111] Through the above embodiments of the present application, in response to an operation on the annotation type selection control displayed in the annotation window, when the link annotation type is selected, it is determined whether the target code block is configured with multiple annotation links.The target code block can be configured with multiple annotation links, and in response to a selection operation of a target annotation link among the multiple annotation links, a corresponding reference annotation interface can be displayed to more fully annotate the target code block to provide more detailed instructions during the programming process to improve programming efficiency.

[0112] In an optional embodiment, the above-mentioned jump from the code block configuration interface to the reference annotation interface matching the index annotation type includes: when the index annotation type is a document annotation type, displaying a document operation panel in the annotation window, wherein the document operation panel includes a document viewing control; in response to an operation on the document viewing control, jumping from the code block configuration interface to the reference annotation interface.

[0113] In an optional embodiment, a document operation panel can be displayed in the annotation window in response to the selection of the document annotation type. The document annotation type can be a written document in a plain text format, which can be written using the Markdown language. The Markdown language is a lightweight markup language that can write documents in a text format and can export documents to files in HTML, PDF or .md formats. The reference annotation interface can be a document written using the Markdown language, or a file exported from it.

[0114] In an optional implementation, when the index annotation type is a document annotation type, a document operation panel can be displayed in the annotation window in response to a selection operation on the document annotation type, and the document operation panel can perform management operations such as editing and viewing on the document.

[0115] In an optional embodiment, in response to the operation of the document viewing control, the document file configured by the target code block can be obtained, and the reference annotation interface can be obtained using the document file. The reference annotation interface can be obtained by converting the document written in the Markdown language to a specified format for display.

[0116] Figure 12 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application; as shown in (a) of Figure 12, multiple annotation types are displayed in the annotation window 1204 corresponding to the target code block 1202, including the document annotation type 1206. In response to a touch operation on the document annotation type 1206, as shown in (b) of Figure 12, the annotation window 1204 corresponding to the target code block 1202 is displayed in the code block configuration interface. The annotation window 1204 includes a document operation panel 1208, and the document operation panel 1208 includes a document viewing control 1210 and a document editing control 1212. In response to a selection operation on the document annotation type (selecting Markdown annotation), the document operation panel 1208 can be displayed in the annotation window 1204. In response to a touch operation on the document viewing control 1210, the document file associated with the target code block 1202 can be obtained and a reference annotation interface can be generated, and then the code block configuration interface can be jumped to the reference annotation interface. In response to a touch operation on the document editing control 1212, the code block configuration interface can be jumped to the document annotation editing interface.

[0117] In an optional implementation, in the case where the above-mentioned document operation panel further includes a document editing control, after the document operation panel is displayed in the annotation window, it further includes: in response to an operation on the document editing control, jumping to the document annotation editing interface in the code block configuration interface; in response to an input editing operation on the document annotation editing interface, obtaining the input document annotation information and updating the reference annotation information corresponding to the target code block in the document annotation editing interface.

[0118] Through the above implementation of the present application, in response to a selection operation on the document annotation type, the document operation panel can be displayed in the annotation window, and in response to a viewing operation on the document operation panel, the code block configuration interface can be jumped to the reference annotation interface.The document file can be used to store the reference annotation information, and when it is viewed, it is displayed through the document file to provide a complete explanatory note for the target code block, so as to explain the target code block in more detail during the programming process, thereby improving the programming efficiency.

[0119] In an alternative embodiment, after jumping from the code block configuration interface to the reference annotation interface in response to an operation on the document viewing control, it includes: in response to an operation on the second return control displayed in the reference annotation interface, returning from the reference annotation interface to the code block configuration interface.

[0120] In an alternative embodiment, after jumping from the code block configuration interface to the reference annotation interface in response to an operation on the document viewing control, it includes: in response to an operation on the editing control in the reference annotation interface, jumping from the reference annotation interface to the document annotation editing interface for updating the reference annotation information; in response to an input editing operation on the document annotation editing interface, obtaining the input document annotation information and updating the reference annotation information corresponding to the target code block in the document annotation editing interface.

[0121] In an alternative embodiment, after a touch operation on the document viewing control, the document file can be obtained and a reference annotation interface can be generated to jump from the code block configuration interface to the reference annotation interface. The reference annotation information can be displayed in the reference annotation interface, and the reference annotation information can be determined by the document file. In the reference annotation interface, an editing control and a second return control can be included. In response to an operation on the editing control, it can jump from the reference annotation interface to the document annotation editing interface, and the above-mentioned document file can be displayed in the document annotation editing interface, such as a file displayed in Markdown format. In response to an editing operation on the document annotation editing interface, the document file can be updated. In response to an operation on the second return control, it can jump from the reference annotation interface to the code block configuration interface, and the document operation panel can still be displayed in the annotation window in the code block configuration interface.

[0122] Figure 13 is a schematic diagram of another alternative annotation processing method for visual programming according to an embodiment of the present application; as shown in Figure 13, the reference annotation information can be displayed in the reference annotation interface.The reference annotation interface also includes an edit control 1302, a view control 1304, and a second return control 1306. In response to a touch operation on the edit control 1302, the reference annotation interface can be jumped to the document annotation editing interface. In response to a touch operation on the view control 1304, the reference annotation interface can be jumped to the reference annotation interface. The view control 1304 can be used to indicate the state of the reference annotation interface. When the view control 1304 is highlighted, it can be determined that the reference annotation interface is displaying the reference annotation information. In response to a touch operation on the second return control 1306, the reference annotation interface can be returned to the code block configuration interface. By the above- mentioned embodiment of the application, in response to the operation of the edit control in the reference annotation interface, the reference annotation information of the target code block association can be updated. In response to the operation of the second return control, it is possible to return to the code block configuration interface from the reference annotation interface, to realize the display of the reference annotation information of the target code block with this, and quickly return to the code block configuration interface that can configure the target code block. Thereby the quick viewing of the annotation of the code block can be realized in the programming process, and then the programming efficiency is improved.

[0124] In an optional embodiment, after the above-mentioned jump to the document comment editing interface in the code block configuration interface in response to the operation of the document editing control, it also includes at least one of the following: in response to the operation performed on the third return control displayed in the document comment editing interface, returning to the code block configuration interface from the document comment editing interface; in response to the operation of the document preview control displayed in the document comment editing interface, displaying the reference comment interface; in response to the operation of the font editing control displayed in the document comment editing interface, updating the font of the document comment information selected in the document comment editing interface; in response to the operation of the document insertion control displayed in the document comment editing interface, adding document content in the document comment interface.

[0125] In an optional embodiment, in response to a touch operation on a document editing control in a document operation panel or in response to an operation on an editing control in a reference annotation interface, a jump to a document annotation editing interface can be performed. Reference annotation information can be updated in the document annotation editing interface, and in response to an input editing operation on the document annotation editing interface, document annotation information can be obtained to update the reference annotation information.

[0126] Figure 14 is a schematic diagram of another optional annotation processing method for visual programming according to an embodiment of the present application; as shown in Figure 14, the document annotation editing interface can display reference annotation information, and in response to an input editing operation on the document annotation editing interface, the displayed reference annotation information can be updated. The document annotation editing interface may include a third return control 1402, a document preview control 1406, an editing control 1404, a font editing control 1408, and a document insertion control 1410. In response to a touch operation on the third return control 1402, it is possible to jump from the document annotation editing interface to the code block configuration interface. The document annotation editing interface may be an HTML document and is implemented by an iframe (inline frame) tag for nesting within the interface. In response to a touch operation on the document preview control 1406, it is possible to save the reference annotation information currently displayed on the document annotation editing interface and jump to the reference annotation interface to display the updated reference annotation information on the reference annotation interface. The editing control 1404 can indicate that the document annotation editing interface is in an editable state in a highlighted form. In response to a touch operation on the font editing control 1408, it is possible to modify the font of the reference annotation information in the document annotation editing interface, such as making the selected text bold, italic, etc. In response to a touch operation on the document insertion control 1410, it is possible to add different forms of data such as links and pictures to the document annotation editing interface.

[0127] Through the above embodiments of the present application, it is possible to update the reference annotation information matched by the target code block. During the programming process, as the target code block has different functions or different connection methods in the program, the reference annotation information can be updated. So that when the program is used subsequently, the role of the target code block or a detailed description of the target code block can be displayed through the reference annotation information of the target code block, thereby reducing the difficulty of understanding the code block, improving the efficiency of the programming process, and enhancing the user experience.

[0128] In an optional embodiment, the annotation processing method of the above-mentioned visual programming also includes one of the following: 1 ) in the case where the type indicated by the object type field included in the comment field group corresponding to the target code block is a text comment type, configuring the comment information for the comment content field included in the field group of the target code block; 2 ) when the type indicated by the object type field included in the annotation field group corresponding to the target code block is a link annotation type, configuring an annotation link for the link field in the annotation content field group, and configuring annotation link description information for the link description field in the annotation content field group, wherein the annotation link is used to indicate a reference annotation interface;

[0131] 3) When the type indicated by the object type field included in the comment field group corresponding to the target code block is a document comment type, the reference comment information is configured for the comment content field included in the field group of the target code block. In optional embodiment , after the target code block is annotated, its annotation information will be associated with the target code block.Annotation information can be separately set a field in a section of code corresponding to the target code block for storage.As can store annotation information in the text field corresponding to the target code block, for example: "text": "the code block of beginning".Can realize the text annotation to the target code block in the above-mentioned manner. In an optional embodiment, the text field for storing the annotation information can be expanded into a json (JavaScript Object Notation) object, which can be a subset based on the Java language and can be associated with multiple character strings. After a text field is expanded into a json object, it can be regarded as a comment field group corresponding to the target code block, which can include multiple fields.

[0134] In an optional embodiment, the comment field group may include an object type field and a comment content field. When the object type field is a text comment type, the text type comment information can be associated with the comment content field to display the text type comment information in the comment window corresponding to the target code block.

[0135] In an optional implementation, when the object type field is a link annotation type, the annotation content field can be set to another json object to achieve setting the annotation content field to a annotation content field group.The comment content field group may include a link field and a link description field. The link field may be associated with the comment link to implement configuration of the comment link of the target code block. The comment link description information may be associated with the link description field to display the comment link description information in the comment window.

[0136] In an optional implementation, when the object type field is a document annotation type, the annotation content can be associated with the reference annotation information to display the reference annotation information in the reference annotation interface. By the above- mentioned embodiment of the application, different character strings can be set for different comment types, after the object type field is associated with different types of character strings, the comment type can be determined. And different comment field groups are set for different comment types, to store annotation information, to realize the association of different types of annotation information and target code block. Thereby in the annotation window of the code block configuration interface, different types of annotation information are shown, and jump to the reference annotation interface through the annotation window to obtain reference annotation information. With the complete description and explanation of the information of code block, the efficiency of programming process and the user experience in the project use are improved.

[0138] It should be noted that, for the aforementioned various method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, some steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0139] According to another aspect of the embodiment of the present application, a visual programming annotation processing device for implementing the above-mentioned visual programming annotation processing method is also provided.As shown in Figure 15, the device includes:

[0140] A comment window display unit 1502, configured to display a comment window of a target code block in response to a touch operation on the target code block in the code block configuration interface, where the comment window is used to obtain comment information configured for the target code block;

[0141] A comment type selection unit 1504, configured to determine a selected index comment type for the target code block from at least two candidate comment types in response to an operation on a comment type selection control displayed in the comment window;

[0142] A reference comment interface jump unit 1506, configured to jump from the code block configuration interface to a reference comment interface that matches the index comment type, where the reference comment interface is used to display reference comment information corresponding to the target code block.

[0143] Optionally, the above-mentioned reference comment interface jump unit 1506 includes: a link comment display module, configured to display comment link description information corresponding to a comment link in the comment window when the index comment type is a link comment type and it is determined that a comment link has been configured for the target code block; a first reference comment interface jump module, configured to jump from the code block configuration interface to a reference comment interface corresponding to the comment link described by the comment link description information in response to a confirmation operation on the comment link description information.

[0144] Optionally, the above-mentioned first reference comment interface jump module is further configured to: display a link comment editing interface for obtaining a comment link in the comment window when the index comment type is a link comment type but it is determined that no comment link has been configured for the target code block; obtain an input-configured comment link and comment link description information corresponding to the comment link in response to an input editing operation on the link comment editing interface; and prompt that a comment link has been configured for the target code block in response to a confirmation operation on the link comment editing interface.

[0145] Optionally, the above-mentioned link annotation display module is also used to: in response to the operation of the link editing control in the link operation panel in the annotation window, display a link annotation editing interface for updating the annotation link in the annotation window; in response to the operation of the link deletion control in the link operation panel in the annotation window, prompt that the annotation link configured for the target code block has been deleted, and display the link annotation editing interface for updating the annotation link in the annotation window; in response to the operation of the link viewing control in the link operation panel in the annotation window, jump to the reference annotation interface corresponding to the annotation link described by the annotation link description information.

[0146] Optionally, the above-mentioned reference annotation interface jump unit 1506 also includes: a first return module, which is used to return to the code block configuration interface from the reference annotation interface in response to an operation performed on a first return control displayed in the reference annotation interface.

[0147] Optionally, the above-mentioned link annotation display module is also used to: when it is determined that at least two annotation links have been configured for the target code block, display the annotation link description information corresponding to each of the at least two annotation links; the above-mentioned first reference annotation interface jump module is also used to: in response to a selection operation of the target annotation link description information in the annotation link description information corresponding to each of the at least two annotation links, jump from the code block configuration interface to the reference annotation interface corresponding to the annotation link described by the target annotation link description information.

[0148] Optionally, the above-mentioned reference annotation interface jump unit 1506 includes: a document annotation display module, which is used to display a document operation panel in the annotation window when the index annotation type is a document annotation type, wherein the document operation panel includes a document viewing control; a second reference annotation interface jump module, which is used to jump from the code block configuration interface to the reference annotation interface in response to an operation on the document viewing control.

[0149] Optionally, the above-mentioned second reference annotation interface jump module is also used to: return to the code block configuration interface from the reference annotation interface in response to an operation on a second return control displayed in the reference annotation interface.

[0150] Optionally, the above-mentioned second reference annotation interface jump module is also used to: in response to the operation of the editing control in the reference annotation interface, jump from the reference annotation interface to the document annotation editing interface for updating the reference annotation information; in response to the input editing operation on the document annotation editing interface, obtain the input document annotation information, and update the reference annotation information corresponding to the target code block in the document annotation editing interface.

[0151] Optionally, the above-mentioned document annotation display module is further configured to: in response to an operation on the document editing control, jump to the document annotation editing interface in the code block configuration interface; in response to an input editing operation on the document annotation editing interface, obtain the input document annotation information, and update the reference annotation information corresponding to the target code block in the document annotation editing interface.

[0152] Optionally, the above-mentioned document annotation display module is further configured to: in response to an operation performed on the third return control displayed in the document annotation editing interface, return from the document annotation editing interface to the code block configuration interface; in response to an operation on the document preview control displayed in the document annotation editing interface, display the reference annotation interface; in response to an operation on the font editing control displayed in the document annotation editing interface, update the font of the document annotation information selected in the document annotation editing interface; in response to an operation on the document insertion control displayed in the document annotation editing interface, add document content to the document annotation interface.

[0153] Optionally, the above-mentioned annotation processing device for visual programming further includes: an annotation field group modification unit, configured to, when the type indicated by the object type field included in the annotation field group corresponding to the target code block is a text annotation type, configure annotation information for the annotation content field included in the field group of the target code block; when the type indicated by the object type field included in the annotation field group corresponding to the target code block is a link annotation type, configure an annotation link for the link field in the annotation content field group, and configure annotation link description information for the link description field in the annotation content field group, where the annotation link is used to indicate the reference annotation interface; when the type indicated by the object type field included in the annotation field group corresponding to the target code block is a document annotation type, configure reference annotation information for the annotation content field included in the field group of the target code block.

[0154] Optionally, in this embodiment, the embodiments to be implemented by the above-mentioned respective unit modules may refer to the above-mentioned respective method embodiments, which will not be elaborated here.

[0155] According to another aspect of the embodiments of the present application, there is also provided an electronic device for implementing the above-mentioned annotation processing method for visual programming. The electronic device may be the terminal device or server shown in Figure 16. This embodiment takes the electronic device as the terminal device as an example for illustration.As shown in Figure 16, the electronic device includes a memory 1602 and a processor 1604. A computer program is stored in the memory 1602, and the processor 1604 is configured to execute the steps in any of the above method embodiments through the computer program.

[0156] Optionally, in this embodiment, the above electronic device may be at least one of multiple network devices in a computer network.

[0157] Optionally, in this embodiment, the above processor may be configured to execute the following steps through the computer program:

[0158] S1, in response to a touch operation on a target code block in a code block configuration interface, display a comment window for the target code block, where the comment window is used to obtain comment information configured for the target code block;

[0159] S2, in response to an operation on a comment type selection control displayed in the comment window, determine an indexed comment type selected for the target code block from at least two candidate comment types;

[0160] S3, jump from the code block configuration interface to a reference comment interface that matches the indexed comment type, where the reference comment interface is used to display reference comment information corresponding to the target code block.

[0161] Optionally, those of ordinary skill in the art can understand that the structure shown in Figure 16 is only schematic. The electronic device can also be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a handheld computer, and terminal devices such as Mobile Internet Devices (MID) and PAD. Figure 16 does not limit the structure of the above electronic device.For example, the electronic device may further include more or fewer components (such as a network interface, etc.) than those shown in Figure 16, or have a configuration different from that shown in Figure 16.

[0162] Among them, the memory 1602 can be used to store software programs and modules, such as the program instructions / modules corresponding to the annotation processing method and device for visual programming in the embodiments of the present application. The processor 1604 executes various functional applications and data processing by running the software programs and modules stored in the memory 1602, that is, implements the above-mentioned annotation processing method for visual programming. The memory 1602 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 1602 may further include a memory remotely disposed relative to the processor 1604, and these remote memories can be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and their combinations. Among them, the memory 1602 may specifically but not limitedly be used to store reference annotation information. As an example, as shown in Figure 16, the above-mentioned memory 1602 may include but are not limited to the annotation window display unit 1502, annotation type selection unit 1504, and reference annotation interface jump unit 1506 in the annotation processing device for visual programming. In addition, it may also include but are not limited to other module units in the annotation processing device for visual programming, which will not be elaborated in this example.

[0163] Optionally, the above-mentioned transmission device 1606 is used to receive or send data via a network. Specific examples of the above network may include wired networks and wireless networks.In one example, the transmission device 1606 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable to communicate with the Internet or a local area network. In one example, the transmission device 1606 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0164] In addition, the above-mentioned electronic device also includes: a display 1608, which is used to display a code block configuration interface; and a connection bus 1610, which is used to connect the various module components in the above-mentioned electronic device. According to one aspect of the application, a kind of computer program product is provided, and this computer program product comprises computer program / instruction, and this computer program / instruction comprises the program code for executing the method shown in flow chart.In such embodiment, this computer program can be downloaded and installed from the network through communication part, and / or is installed from removable medium.When this computer program is executed by central processing unit, perform the various functions that embodiment of the application provides.

[0166] The above serial numbers of the embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0167] According to one aspect of the present application, a computer-readable storage medium is provided, and a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned visual programming annotation processing method.

[0168] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:

[0169] S1, in response to a touch operation on a target code block in a code block configuration interface, displaying a comment window of the target code block, wherein the comment window is used to obtain comment information configured for the target code block;

[0170] S2, in response to an operation on a comment type selection control displayed in the comment window, determining an index comment type selected for the target code block from at least two candidate comment types;

[0171] S3, jumping from the code block configuration interface to the reference annotation interface matching the index annotation type, wherein the reference annotation interface is used to display the reference annotation information corresponding to the target code block.

[0172] Optionally, in this embodiment, a person of ordinary skill in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing hardware related to the terminal device through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc. If the integrated unit in the above -mentioned embodiment is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in the above-mentioned computer-readable storage medium. Based on such understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including some instructions to make one or more computer devices (which can be personal computers, servers or network equipment, etc.) perform all or part of the steps of the above-mentioned methods of each embodiment of the present application.

[0174] In the above-mentioned embodiments of the present application, the description of each embodiment has its own focus. For the parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0175] It can be understood that in the specific implementation of the present application, related data such as user information is involved. When the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0176] In the several embodiments provided in the present application, it should be understood that the disclosed client can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of the above-mentioned units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0177] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units.Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0178] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0179] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.< / iframe>

Claims

1. A method for processing annotations in visual programming, characterized in that: include: In response to a touch operation on a target code block in the code block configuration interface, displaying a comment window of the target code block, wherein the comment window is used to obtain comment information configured for the target code block; In response to an operation on an annotation type selection control displayed in the annotation window, determining an index annotation type selected for the target code block from at least two candidate annotation types; Jump from the code block configuration interface to a reference annotation interface matching the index annotation type, wherein the reference annotation interface is used to display reference annotation information corresponding to the target code block.

2. The method according to claim 1, characterized in that The step of jumping from the code block configuration interface to the reference annotation interface matching the index annotation type includes: When the index annotation type is a link annotation type and it is determined that an annotation link has been configured for the target code block, displaying annotation link description information corresponding to the annotation link in the annotation window; In response to a confirmation operation on the annotation link description information, the interface jumps from the code block configuration interface to the reference annotation interface corresponding to the annotation link described by the annotation link description information.

3. The method according to claim 2, characterized in that Before jumping from the code block configuration interface to the reference annotation interface matching the index annotation type, the method further includes: When the index annotation type is the link annotation type, but it is determined that the annotation link is not configured for the target code block, displaying a link annotation editing interface for obtaining the annotation link in the annotation window; In response to an input editing operation on the link annotation editing interface, acquiring the annotation link of the input configuration and the annotation link description information corresponding to the annotation link; In response to a confirmation operation on the link annotation editing interface, it is prompted that the annotation link has been configured for the target code block.

4. The method according to claim 2, characterized in that: Displaying the annotation link description information corresponding to the annotation link in the annotation window further includes at least one of the following: In response to an operation on a link editing control in a link operation panel in the annotation window, displaying a link annotation editing interface for updating the annotation link in the annotation window; In response to an operation on a link deletion control in a link operation panel in the annotation window, prompting that the annotation link configured for the target code block has been deleted, and displaying a link annotation editing interface for updating the annotation link in the annotation window; In response to an operation on a link viewing control in a link operation panel in the annotation window, the interface jumps to the reference annotation interface corresponding to the annotation link described by the annotation link description information.

5. The method according to claim 1, characterized in that After jumping from the code block configuration interface to the reference annotation interface matching the index annotation type, the method further includes: In response to an operation performed on a first return control displayed in the reference annotation interface, returning from the reference annotation interface to the code block configuration interface.

6. The method according to claim 2, characterized in that Displaying the annotation link description information corresponding to the annotation link in the annotation window includes: when it is determined that at least two annotation links have been configured for the target code block, displaying the annotation link description information corresponding to each of the at least two annotation links; In response to a confirmation operation on the annotation link description information, jumping from the code block configuration interface to the reference annotation interface corresponding to the annotation link described by the annotation link description information includes: in response to a selection operation on the target annotation link description information in the annotation link description information corresponding to each of the at least two annotation links, jumping from the code block configuration interface to the reference annotation interface corresponding to the annotation link described by the target annotation link description information.

7. The method according to claim 1, characterized in that The step of jumping from the code block configuration interface to the reference annotation interface matching the index annotation type includes: In the case where the index annotation type is a document annotation type, displaying a document operation panel in the annotation window, wherein the document operation panel includes a document viewing control; In response to the operation on the document viewing control, jumping from the code block configuration interface to the reference annotation interface.

8. The method according to claim 7, characterized in that After jumping from the code block configuration interface to the reference annotation interface in response to the operation on the document viewing control, the method includes: In response to an operation on a second return control displayed in the reference annotation interface, returning from the reference annotation interface to the code block configuration interface.

9. The method according to claim 7, characterized in that: After jumping from the code block configuration interface to the reference annotation interface in response to the operation on the document viewing control, the method further includes: In response to an operation on an editing control in the reference annotation interface, jumping from the reference annotation interface to a document annotation editing interface for updating the reference annotation information; In response to an input editing operation on the document comment editing interface, the input document comment information is acquired, and the reference comment information corresponding to the target code block in the document comment editing interface is updated.

10. The method according to claim 7, characterized in that In the case where the document operation panel also includes a document editing control, after the document operation panel is displayed in the annotation window, the method further includes: In response to an operation on the document editing control, jumping to a document annotation editing interface in the code block configuration interface; In response to an input editing operation on the document comment editing interface, the input document comment information is acquired, and the reference comment information corresponding to the target code block in the document comment editing interface is updated.

11. The method according to claim 10, characterized in that In response to the operation on the document editing control, after jumping to the document annotation editing interface in the code block configuration interface, the method further includes at least one of the following: In response to an operation performed on a third return control displayed in the document comment editing interface, returning from the document comment editing interface to the code block configuration interface; In response to an operation on a document preview control displayed in the document annotation editing interface, displaying the reference annotation interface; In response to an operation on a font editing control displayed in the document annotation editing interface, updating a font of the document annotation information selected in the document annotation editing interface; In response to an operation on a document insert control displayed in the document annotation editing interface, document content is added to the document annotation interface.

12. The method according to any one of claims 1 to 11, characterized in that The method further comprises one of the following: In a case where the type indicated by the object type field included in the comment field group corresponding to the target code block is a text comment type, configuring the comment information for the comment content field included in the field group of the target code block; In the case that the type indicated by the object type field included in the annotation field group corresponding to the target code block is a link annotation type, configuring an annotation link for the link field in the annotation content field group, and configuring annotation link description information for the link description field in the annotation content field group, wherein the annotation link is used to indicate the reference annotation interface; In a case where the type indicated by the object type field included in the comment field group corresponding to the target code block is a document comment type, the reference comment information is configured for the comment content field included in the field group of the target code block.

13. A visual programming annotation processing device, characterized in that: include: A comment window display unit, configured to display a comment window of a target code block in response to a touch operation on the target code block in the code block configuration interface, wherein the comment window is used to obtain comment information configured for the target code block; an annotation type selection unit, configured to determine, in response to an operation on an annotation type selection control displayed in the annotation window, an index annotation type selected for the target code block from at least two candidate annotation types; A reference annotation interface jump unit is used to jump from the code block configuration interface to a reference annotation interface matching the index annotation type, wherein the reference annotation interface is used to display reference annotation information corresponding to the target code block.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 1 to 12 when executed.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the method according to any one of claims 1 to 12 is implemented.

16. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 12 through the computer program.

Citation Information

Patent Citations

  • Page visual programming method and device, server and storage medium

    CN110457028A

  • Interface processing method, device, electronic equipment and computer readable storage medium

    CN113867867A

  • Semantic annotations in source code

    US10303466B1